Hi, please help if possible.
I need the number of weeks in a month at any goven date of the month.
I have the formula to gain weeks in month using:
However if i am for example typing 12-jan-2021 the weeks change to 3 as opposed to 5 which would be the answer if i had input 01 jan 2021 ( for this example i am counting Fridays)
Is there anyway to do this?
I need the number of weeks in a month at any goven date of the month.
I have the formula to gain weeks in month using:
=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&":"&EOMONTH(A1,0))),2)=1))
However if i am for example typing 12-jan-2021 the weeks change to 3 as opposed to 5 which would be the answer if i had input 01 jan 2021 ( for this example i am counting Fridays)
Is there anyway to do this?