I would like to convert a day of the week in cell (e.g. Saturday in cell G2), into it's numerical value in another cell (e.g. "7" in cell K2) so that I can use a formula:
=SUM(INT((WEEKDAY(T2-DAY(T2)+1-R2)+(DAY(DATE(YEAR(T2),MONTH(T2)+1,0))-1))/7))
to calculate how many of those weekdays (Saturdays in my example) there are in a specific calendar month. Is there a formula for this?
Payroll.xlsx
Thanks in advance.
Bookmarks