Excel’s leap year bug
A leap year, which occurs every four years, contains an additional day (February 29). Although the year 1900 was not a leap year, Excel treats it as such. In other words, when you type 2/29/1900 into a cell, Excel interprets it as a valid date and assigns a serial number of 60.
If you type 2/29/1901, however, Excel correctly interprets it as a mistake and doesn’t convert it to a date. Rather, it simply makes the cell entry a text string.
How can a product used daily by millions of people contain such an obvious bug? The answer is historical. The original version of Lotus 1-2-3 contained a bug that caused it to consider 1900 as a leap year. When Excel was released some time later, the designers knew of this bug and chose to reproduce it in Excel to maintain compatibility with Lotus worksheet files.
Why does this bug still exist in later versions of Excel? Microsoft asserts that the disadvantages of correcting this bug outweigh the advantages. If the bug were eliminated, it would mess up millions of existing workbooks.
In addition, correcting this problem would possibly affect compatibility between Excel and other programs that use dates. As it stands, this bug really causes very few problems because most users don’t use dates before March 1, 1900.
// Related Posted - GOOGLE!
Related Websites
- The Best Way to Retire Early There are a lot of retirement calculators out there offering to calculate how much you'll need in retirement. I don't think...
- Antelope Green Golf Course, Antelope, CA Antelope Green Golf Course is located in: Antelope, CA Phone: (916)334-5764 Website: http://www.antelopegreensgolf.com Course History: This beautiful course is tucked...
- Use Math To Alleviate Fear Of Stock Market Volatility Over the last ten years, the S&P 500 had returns of 26%, -37%, 5%, 16%, 5%, 11%, 29%, -22%, -12%,...
- Pocket UDD FlashCard Reader/Writer Pocket UDD FlashCard Reader/Writer The Addonics Pocket UDD (Ultra DigiDrive) is the ultimate reader/writer for PCMCIA hard drive and ATA...
- Verizon to launch 4G in up to 60 markets by mid-2012 Verizon to launch 4G in up to 60 markets by mid-2012 by Greg Kumparak on February 26, 2010 Everything moves...
