I thought that the datepart function may help with this, but I cant remember offhand.
If not, another solution would be to create a calculation that counts that number of days that have elapsed in the current year, and divide that number by 52, and then make an integer of that number.
Something like
=int((date()- dateserial(year(date()-1),12,31)/52)
Have just come across this thread and it part solves my problem. however...this solution seems to calculate based on first day of week being Sunday, i need to start my weeks on Monday, how can this be achieved?
Cheers, Craig Si fractum non sit, noli id reficere
Constant Value Description
vbUseSystem 0 Use the NLS API setting.
vbSunday 1 Sunday (default)
vbMonday 2 Monday
vbTuesday 3 Tuesday
vbWednesday 4 Wednesday
vbThursday 5 Thursday
vbFriday 6 Friday
vbSaturday 7 Saturday
The firstweekofyear argument has these settings:
Constant Value Description
vbUseSystem 0 Use the NLS API setting.
vbFirstJan1 1 Start with week in which January 1 occurs (default).
vbFirstFourDays 2 Start with the first week that has at least four days in the new year.
vbFirstFullWeek 3 Start with first full week of the year.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.