On Wed, 9 Mar 2005 23:01:03 -0800, Ajit Munj wrote:
If I put 01.02.2005 in Cell for Feb, 2005, How can I calculate total no. of
days i.e. total Sundays, total Mondays, total Tuesdays etc. in that month?
Ajit
=4+(DAY(A1-DAY(A1)+1-WEEKDAY(A1-DAY(A1+desired_week_day))+35)7)
Assumes your date is in A1.
For desired_week_day substitute
1 for Sunday
2 for Monday
etc.
or a cell reference with those numbers in it.
--ron
|