Problem with Excel Dates

ewize1

Board Regular
Joined
Nov 3, 2003
Messages
121
Do you know that there is no 29 Feb 1900? However, Excel allows you to enter 29 Feb 1900 into a cell without any error. The calendar in Outlook is alright.

I discovered this when I was doing some calculations and found that my result is errorneous. I happened to use 31 Jan 1900 as my reference date, thus 1 Mar 1900 became 30 days after 31 Jan 1900 instead of 29. I guess the simpliest fix to this problem is to change the reference date to one that falls after 29 Feb 1900. Can I use the Outlook calendar in Excel?

Is this a bug in Excel, which I suppose it should be? I'm using Excel 2003, is there someone who is using the latest version? Maybe you can try to verify this.

Regards.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Doug.T

Board Regular
Joined
Sep 19, 2006
Messages
80
That is why Mac's use the 1904 date system, to avoid problems with 1900 not being a leap year.
 

Doug.T

Board Regular
Joined
Sep 19, 2006
Messages
80
Blame Lotus. :)

http://www.cpearson.com/excel/datetime.htm

"Actually, this number is one greater than the actual number of days. This is because Excel behaves as if the date 1900-Feb-29 existed. It did not. The year 1900 was not a leap year (the year 2000 is a leap year). In Excel, the day after 1900-Feb-28 is 1900-Feb-29. In reality, the day after 1900-Feb-28 was 1900-Mar-1 . This is not a "bug". Indeed, it is by design. Excel works this way because it was truly a bug in Lotus 123. When Excel was introduced, 123 has nearly the entire market for spreadsheet software. Microsoft decided to continue Lotus' bug, in order to fully compatible. Users who switched from 123 to Excel would not have to make any changes to their data. As long as all your dates later than 1900-Mar-1, this should be of no concern. "
 

Forum statistics

Threads
1,137,366
Messages
5,681,074
Members
419,950
Latest member
BeckiJae

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top