Counting number of Sundays
Hi,
Srat date in a1
End date in b1
=SUM(IF(WEEKDAY(A1-1+ROW(INDIRECT("1:"&TRUNC(B1-A1)+1)))=1,1,0))
Just for interest the =1 bit looks for Sundays 2 would be mondays etc
Mike
"Excelman" wrote:
I am looking for a formula that will count the number of Sundays within a
date range. Example: I want to enter a start date in one cell, and today's
date in another,and need a formula that will count the number of Sundays
between the two.A1 3/01/2008
A2 3/31/2008
A3 5 (5 Sundays between the dates)
|