calulate the number of leapdays between two dates?

R

Ron Rosenfeld

can this be do this easily

Here's one way:

=SUMPRODUCT(--(TEXT(ROW(INDIRECT(StartDt&":"&EndDt)),"mmdd")="0229"))

StartDt and EndDt refer to two cells which contain the starting and ending date
of the range you are checking.
--ron
 
B

Bob Phillips

Try this

=SUMPRODUCT(--(TEXT(ROW(INDIRECT(A1&":"&A2)),"dd-mmm")="29-Feb"))
 
Top