Search code examples
excelexcel-2007excel-formulaexcel-2010

Excel formula to get week number in month (having Monday)


Using excel formula I need to get week number in month from a given date. But, the condition is it should have Monday in it. Monday through Sunday is the work days.

I have tried this:

enter image description here

But, week number is given as 5, where as it should be 4 because 1st November 2013 was Friday, so it would be calculated in October's last week.


Solution

  • If week 1 always starts on the first Monday of the month try this formula for week number

    =INT((6+DAY(A1+1-WEEKDAY(A1-1)))/7)

    That gets the week number from the date in A1 with no intermediate calculations - if you want to use your "Monday's date" in B1 you can use this version

    =INT((DAY(B1)+6)/7)