vba - change column "type"

  • Thread starter Thread starter MJ
  • Start date Start date
M

MJ

Hi,

I have a csv that gets opened in excel. One column contains cells
with the format of Date (mm/dd/yyyy). I need to get the difference
between this date and the date in another column. My problem is that
the format of the other column is shown as "Custom" (m/d/yyyy h:mm).

Is there a way to get the custom column to be the same format as the
first column so that I can do a datediff?

Thanks,
MJ
 
Hi
if these values are both stored as real date values you can simply use
=DATEDIF(INT(A1),INT(A2))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top