Computing.Net > Forums > Office Software > Excel date format question

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Excel date format question

Reply to Message Icon

Name: shauncwalsh
Date: November 30, 2006 at 04:32:03 Pacific
OS: Win XP
CPU/Ram: Irrelevant
Product: Irrelevant
Comment:

I have set up a series of Excel spreadsheets which are linked by a macro. The macro copies and pastes data from one spreadsheet to another (amongst other things)Somehow, someone has set their spreadsheet to the 1904 date system so now one of the linked spreadsheets contains a mixture of dates in the 1900 and 1904 formats which messes up the chronological order :-(( Can anyone suggest an easy way to convert a range of cells from 1904 format to 1900 whilst leaving the rest unaltered?
Tearing my hair out!
thanks
Shaun



Sponsored Link
Ads by Google

Response Number 1
Name: callan1
Date: November 30, 2006 at 09:32:00 Pacific
Reply:

Just a thought, but if your macro pastes from other sheets, can you get it to paste just the value, (as in paste special)? The date is just a number but if you simply "paste" it will also paste the original format, overriding the format of the destination cell. If you can "paste values", your destination cell should determine how it displays and it won't matter how the original sheets is set up.


0

Response Number 2
Name: shauncwalsh
Date: November 30, 2006 at 10:46:58 Pacific
Reply:

I do use paste special, but if the value pasted is generated in the 1904 format and is pasted into a sheet in 1900 format you get the wrong date displayed.
The actual value pasted is a numeric value calculating the days from 1900 or 1904 to the date specified, hence same date, two formats two different pasted values.
Thanks for trying.
Shaun


0

Response Number 3
Name: Grok Lobster
Date: November 30, 2006 at 21:35:26 Pacific
Reply:

Very interesting problem. I think hair pulling is in order.
It seems that the 1904 date system is tied to the workbook. Can you convert the 1904 workbook to 1900 values and then update the linked sheets? You might want to check John Walkenbach's site, or the MS forum for Excel.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Word Help Items in calendar



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Excel date format question

Excel date format in dd/mm/yy www.computing.net/answers/office/excel-date-format-in-ddmmyy/8378.html

Excel 97 - format menu www.computing.net/answers/office/excel-97-format-menu/6406.html

Date formatting in Excel www.computing.net/answers/office/date-formatting-in-excel/9134.html