salahmost
Board Regular
- Joined
- Feb 19, 2007
- Messages
- 68
I use the following formula from:
http://www.cpearson.com/excel/WeekNumbers.aspx
to get the week number depending on first occurrence of "Saturday". For example, that Week 1 begins on the first Saturday of the year. The formula is:
=TRUNC(((A1-DATE(YEAR(A1),1,1)+MOD(7-WEEKDAY(DATE(YEAR(A1),1,1)),7))+6)/7)
Where A1 Contains the date I want to get its week number.
If A1 contains 1/1/2011 the result is 0 instead of 1 ....what'wrong ?
http://www.cpearson.com/excel/WeekNumbers.aspx
to get the week number depending on first occurrence of "Saturday". For example, that Week 1 begins on the first Saturday of the year. The formula is:
=TRUNC(((A1-DATE(YEAR(A1),1,1)+MOD(7-WEEKDAY(DATE(YEAR(A1),1,1)),7))+6)/7)
Where A1 Contains the date I want to get its week number.
If A1 contains 1/1/2011 the result is 0 instead of 1 ....what'wrong ?