But that's the opposite to what you posted
21 Mar 2004 = 1
21 Mar 2003 = 0

Signature
Regards,
Peo Sjoblom
Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
"It is a good thing to follow the first law of holes;
if you are in one stop digging." Lord Healey
> =IF(((YEAR(D2)/4)-(INT(YEAR(D2)/4)))>0,1,0)
David Biddulph - 19 May 2006 08:43 GMT
>> =IF(((YEAR(D2)/4)-(INT(YEAR(D2)/4)))>0,1,0)
> But that's the opposite to what you posted
>
> 21 Mar 2004 = 1
> 21 Mar 2003 = 0
And even having corrected that, the formula is wrong. 1600 and 2000 were
leap years, but 1700, 1800, and 1900 weren't and 2100 won't be.

Signature
David Biddulph