Count number of dates

  • Thread starter Thread starter pau1a
  • Start date Start date
P

pau1a

Hi,

I want to put a formula on a spreadsheet to calculate the number of 6 Aprils
between two dates.

For example
A1=1/1/1990
A2=1/1/1993
There would be three 6 Aprils.

I would imagine that I could do this using a combination of Ifs and DateDiffs
but it seems that there must be an easier way!

Any ideas?!
 
Hi!

Try this:

=SUMPRODUCT(--(TEXT(ROW(INDIRECT(A1&":"&A2)),"mmmd")="Apr6"))

Biff
 

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

Back
Top