Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
MJ MJ is offline
external usenet poster
 
Posts: 3
Default vba - change column "type"

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default vba - change column "type"

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

--
Regards
Frank Kabel
Frankfurt, Germany

"MJ" schrieb im Newsbeitrag
om...
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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I change the column heading in Excel to display "A" "B" "C Thai New Users to Excel 1 November 30th 07 08:06 PM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
Where is the toolbar with the "bold type", "font type", options fwccbcc New Users to Excel 2 May 3rd 06 09:11 PM
Change data in a single column from "last, first" to "first last" Jeanne Excel Discussion (Misc queries) 2 March 27th 06 08:40 PM


All times are GMT +1. The time now is 05:43 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"