The information in this article applies to:
SUMMARYThis article contains information that explains how to determine whether the year in a date used in a Microsoft Excel document is a leap year. MORE INFORMATION
The date system used by Microsoft Excel is based on the Gregorian
calendar, first established in 1582 by Pope Gregory XIII. The Gregorian
calendar was designed to correct the errors introduced by the less
accurate Julian calendar.
because they are evenly divisible by 100 but NOT by 400.
The following years ARE leap years
because they are evenly divisible by both 100 and 400.
Because earlier versions of Microsoft Excel handle only years from 1900 to 2078, only the year 1900 is subject to the 100/400 exclusion rule of leap years in Microsoft Excel. However, in order to be compatible with other programs, Microsoft Excel treats the year 1900 as a leap year. NOTE: Microsoft Excel 97 and Microsoft Excel 98 Macintosh Edition handle years from 1900 to 9999. Although Microsoft Excel 97 and Microsoft Excel 98 Macintosh Edition still treat the year 1900 as a leap year, all other non-leap years (2100, 2200, and so on) are handled correctly. For additional information, please click the article number below to view the article in the Microsoft Knowledge Base: Q106339 : XL: Days of the Week Before March 1, 1900, Are Incorrect To Determine If a Year Is a Leap YearTo determine if a year is a leap year, follow these steps:
Formula to Determine If a Year Is a Leap YearThe following formula will determine whether the year number entered into a cell (in this example, cell A1) is a leap year:
REFERENCESFor more information about how Microsoft products are affected by year 2000 (Y2K) issues, please see the following Microsoft World Wide Web site: http://www.microsoft.com/year2000/ Additional query words: 2.00 2.20 2.21 4.00a 5.00c 7.00a 97 8.0 98 XL98 XL97 XL7 XL5 XL4 y2k year2000 year 2000
Keywords : kb2000 xlformula |
Last Reviewed: September 29, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |