Robert, In the Gregorian calendar, leap years fall on any year that either can be evenly divided by 400 or evenly divided by 4 and not evenly divided by 100. 1900 was not a leap year but 2000 was. In other words: IF [A]Year is exactly divisible by 400 OR ([B]Year is exactly divisible by 4 AND [C]Year is not exactly divisible by 100) ... for Year = 1900, [A] is false, [B] is true and [C] is false. ([B] AND [C]) evaluates to false and ([A] OR false) evaluates to false. Your formula is correct :) (The Eastern Orthodox churches compute leap years by using another rule; that a leap year is any year which number can be divided by 4 without a remainder, and years ending in hundreds are leap years if a remainder of 2 or 6 occurs when such a year is divided by 9. A nice little puzzle to keep for after Christmas dinner!) Andrew > -----Original Message----- > From: mso-bounce@xxxxxxxxxxxxx > [mailto:mso-bounce@xxxxxxxxxxxxx] On Behalf Of Robert Carneal > Sent: 14 December 2005 01:36 > To: mso@xxxxxxxxxxxxx > Subject: [mso] Determining leap year in Excel 2000 > > Hello everyone. Odd problem for me in determining if a year > is a leap year. > > I am using the formula: > =IF(OR(MOD(B36,400)=0,AND(MOD(B36,4)=0,MOD(B36,100)<>0)),"Y", "") > > I am not sure my OR statement is correct, I notice using the > formula Excel didn't label 1900 has a leap year. Shouldn't it have? > > Thanks, > > Robert > ___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com ************************************************************* You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or MicrosoftOffice@xxxxxxxxxxxxxxxx To send mail to the group, simply address it to mso@xxxxxxxxxxxxx To Unsubscribe from this group, send an email to mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in the subject line. Or, visit the group's homepage and use the dropdown menu. This will also allow you to change your email settings to digest or vacation (no mail). //www.freelists.org/webpage/mso To be able to use the files section for sharing files with the group, send a request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with instructions. Once you are a member of the files group, you can go here to upload/download files: http://www.smartgroups.com/vault/msofiles *************************************************************