Trying to find out how many Mondays are in a given month/year
example, A1=1/1/11 answer would be 5
A1=2/1/11 answer would be 4
A1=5/1/11 answer would be 5
Trying to find out how many Mondays are in a given month/year
example, A1=1/1/11 answer would be 5
A1=2/1/11 answer would be 4
A1=5/1/11 answer would be 5
TechRetard.ToString();
There are always multiple ways to do something, when it doubt, drink a beer.
I do not care if you rep or not but please mark post as Solved if there is resolution so I stop going back and checking if anything else is needed.
Try this formula
=4+(DAY(A1+34)<WEEKDAY(A1-1))
Audere est facere
that doesn't work ... check july result
i did find this formula and it seems to work
Only question now, for convenience sake, is there any way to fill down the monday dates?Please Login or Register to view this content.
i.e. B1: 1/3/11, B2: 1/10/11, B3: 1/17/11, etc
=SUM(IF(WEEKDAY(A2-1+ROW(INDIRECT("1:"&TRUNC(B2-A2)+1)))=C2,1,0))
Entered as an array formula will give the number of " any day " between two dates where
A2 = begin date
B2 = End date
C2 = weekday ( Sunday=1, Monday = 2, etc..)
To get the first Monday in the month
=A1+7-WEEKDAY(A1+5)
Then add 7 to get subsequent Mondays as Jeff suggests
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks