I would assume that the first week of the year is Jan. 1st but the formula returns #2 starting at Jan 4th. Why is that?
I would assume that the first week of the year is Jan. 1st but the formula returns #2 starting at Jan 4th. Why is that?
Unfortunately, week numbers aren't quite as simple and straightforward as we'd like. Have a read of this wiki article on the subject:
Week Numbers
Cheers,
Would you like to say thanks? Please click the: "Add Reputation" button, on the grey bar below the post.
Always good to read Excel help pages first. (Although they often contain some factual errors. :-( ) Click on https://support.office.com/en-us/art...rs=en-US&ad=US.
Specifically:
Also see an explanation of the optional second parameter ("return type").There are two systems used for this function:
System 1[:] The week containing January 1 is the first week of the year, and is numbered week 1.
System 2[:] The week containing the first Thursday of the year is the first week of the year, and is numbered as week 1. This system is the methodology specified in ISO 8601, which is commonly known as the European week numbering system.
Last edited by joeu2004; 02-23-2015 at 01:50 PM. Reason: cosmetic
Try this in E2:
=INT((A2-DATE(YEAR(A2),1,1))/7)+1
Quang PT
Thank you everyoneI came back here cause I found something online that I thought finally I could contribute to helping. lol but I see Bebo021999 gave me a formula. I will try it. I found this though
=TRUNC(((AU2-DATE(YEAR(AU2),1,0))+6)/7)
and it seems to work but might be because the first fell on a sunday. lol Well, at least I have a year until it might not work![]()
You haven't really said what you want the formula to do?
That formula makes the first 7 days of the year week 1, the next 7 week 2 etc. At the end of the year the last day (or two days in a leap year) will be in week 53. It takes no account of days of the week. Is that what you need? If not then please explain
Audere est facere
Yea it works for what i need.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks