week numbers

K

Kevin Carter

Hi
I am trying to insert the week numbers
i would like the week to start on a Saturday and end on the Friday
i have tried this formula
=TRUNC(((StartDate-DATE(YEAR(StartDate),1,1)+
MOD(DayOfWeek-WEEKDAY(DATE(YEAR(StartDate),1,1)),7))+6)/7)
where StartDate is the whose week number is to be found, and DayOfWeek is the day of week number (1 = Sunday, 2 = Monday, ..., 7 = Saturday).

my formula :-
=TRUNC(((B21-DATE(YEAR(B21),1,1)+MOD(7-WEEKDAY(DATE(YEAR(B21),1,1)),7))+6)/7)
on chip pearsons web site
what i am finding when i get to Friday of the first week and the week number changes to 2, later in the year (17-1-12)a Tuesday the week number changes to 4 which should be week 3

any ideas how i can resolve this

thanks

kevin
 
K

Kevin Carter

What do you mean when you say system?
if you are refering to the spreadsheet i have entered the date ie 1/1/2011
 
K

Kevin Carter

thanks for reply
i can see where your coming from (i didn't think of that)
reading your two examples i my case it will be the first full week back
for example this year 1/1/2011 was a Saturday we started work monday 3
next year we start on the 3rd so the 31/12/ would be the start of the week

kevin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top