Extract Number of Weekdays (Mon-Fri) & Saturdays for a particular Month/Yr
Non-volatile, non-ATP alternatives:
Weekdays (M - F):
=SUM(INT((WEEKDAY(A1-{1,2,3,4,5},2)+DATE(YEAR(A1),MONTH(A1)+1,0)-A1)/7))
Whe {1,2,3,4,5} = days of the week: Mon = 1 through Sun = 7
Saturdays:
=INT((WEEKDAY(A1-6,2)+DATE(YEAR(A1),MONTH(A1)+1,0)-A1)/7)
Or:
=4+(DAY(A1-DAY(A1)+35)<WEEKDAY(A1-DAY(A1)-6))
Whe -6 (in both formulas) = day of the week: Mon = 1 through Sun = 7
--
Biff
Microsoft Excel MVP
"Max" wrote in message
...
Are you ok with using functions from the ATP?
Thanks, Biff. I'm ok with that. TM has provided a way to get there. But
I'm game to try your alternatives, ATP or otherwise, all of which can only
enrich the newgroups further. Ride on!
|