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"))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top