I am trying to use a cell formula to determine weeknum. The first monday of the month is the first week.
I have adapted this formula from here http://www.cpearson.com/excel/WeekNumbers.aspxto this
b2 has my day in dd/mm/yyyy format. Can't quite get it to work though, any ideas.
I have adapted this formula from here http://www.cpearson.com/excel/WeekNumbers.aspxto this
Code:
=TRUNC(((B3-DATE(YEAR(B3),1,1)+MOD((1 = Monday)-WEEKDAY(DATE(YEAR(B3),1,1)),7))+6)/7)
b2 has my day in dd/mm/yyyy format. Can't quite get it to work though, any ideas.