Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 287
Default Date and Time

I have a report that I download from a DB and it has a range in column A that
is the date and time(1/16/2008 1:36:08 PM). I need a macro that will strip
this down to just the date so I can complete so formulas like Days360 between
another date. Can you help?

Thanks, Aaron
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Date and Time

Easiest to do it with a formula in the spreadsheet i a new column then copy
and paste special values only in the original column.

The use this forlula to convert date time to justt date

=DATE(YEAR(A1),MONTH(A1),DAY(A1))



"Aaron" wrote:

I have a report that I download from a DB and it has a range in column A that
is the date and time(1/16/2008 1:36:08 PM). I need a macro that will strip
this down to just the date so I can complete so formulas like Days360 between
another date. Can you help?

Thanks, Aaron

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
Converting text format of time/date into Excel time/date for subtr YY san.[_2_] Excel Worksheet Functions 6 February 25th 10 08:27 AM
Calculating days & time left from start date/time to end date/time marie Excel Worksheet Functions 7 December 7th 05 02:36 PM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 02:48 AM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 12:07 AM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 12:07 AM


All times are GMT +1. The time now is 12:52 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"