Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Formula for creating week Numbers

0 views
Skip to first unread message

Gary

unread,
Feb 3, 2003, 5:09:00 AM2/3/03
to
I have a spreadsheet for products with a corresponding
release date. I need to create a week number generated
from the release date. Has anyone got any ideas.

Thanks

Anonymous

unread,
Feb 3, 2003, 5:15:14 AM2/3/03
to
"Gary" <gary....@dwp.gsi.gov.uk> wrote in message
news:018f01c2cb6c$45829f10$8df82ecf@TK2MSFTNGXA02...

Here are two formulas for calculating the ISO week number from a date in A1.
I haven't found any difference in results, so unless anyone can identify any
such, take your pick:

=INT((A1-(DATE(YEAR(A1-WEEKDAY(A1-1)+4),1,3)-WEEKDAY(DATE(YEAR(A1-WEEKDAY(A1
-1)+4),1,3)))+5)/7)

=1+INT((A1-DATE(YEAR(A1+4-WEEKDAY(A1+6)),1,5)+WEEKDAY(DATE(YEAR(A1+4-WEEKDAY
(A1+6)),1,3)))/7)


J.E. McGimpsey

unread,
Feb 3, 2003, 6:46:32 AM2/3/03
to
Look at the WEEKNUM() function in XL Help. WEEKNUM() is part of the
Analysis Toolpak Add-in, so you'll have to install that to use the
function.

Also, be sure to look here for a discussion of ISO week numbers vs. XL
week numbers:

http://cpearson.com/excel/weeknum.htm

In article <018f01c2cb6c$45829f10$8df82ecf@TK2MSFTNGXA02>, Gary

Gary

unread,
Feb 4, 2003, 2:49:04 AM2/4/03
to
Thanks

The formula works fine

>.
>

0 new messages