Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel 1904 Date System Issue

Status
Not open for further replies.

psarros

MIS
Feb 17, 2002
67
US
I need to combine two spreadsheets each with several worksheets. One was done with the 1904 System and the other without it...

Any Ideas how to get around this?

Thanks
 
Dates are stored as the number of days elapsed since the base date in 1904 or 1900. For example 31 Jan 2005 is 36921 in one system and 38383 in the other.

So to merge the spreadsheets you are going to have to change all date numbers in one of the workbooks by adding or subtracting the constant difference depending which date system to use in the final result.

It may be possible to write a macro that would test each cell's format to see if it is a date and to adjust the number accordingly. This assumes all dates are formatted in the same consistent way.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top