weeknumber formula

Hi,
In Israel our week starts from Sunday, therefore weeknumber formula calculates Sunday for previous week number. I use grid template and even on project template changing Sunday as week start, the formula "weeknumber" presents Sunday as previous week number, pls. see pic below.
How can I get Sunday as new weeknumber?
thanks
Yuval
Best Answer
-
You would add an IF statement to say that if the WEEKDAY is 1 (Sunday) then add 1 to the WEEKNUMBER. Not sure why WEEKDAY starts with Sunday but WEEKNUMBER starts with Monday, but that's how it has been since I can Remember.
=WEEKNUMBER(Date@row) + IF(WEEKDAY(Date@row) = 1, 1, 0)
Answers
-
You would add an IF statement to say that if the WEEKDAY is 1 (Sunday) then add 1 to the WEEKNUMBER. Not sure why WEEKDAY starts with Sunday but WEEKNUMBER starts with Monday, but that's how it has been since I can Remember.
=WEEKNUMBER(Date@row) + IF(WEEKDAY(Date@row) = 1, 1, 0)
-
Thanks a lot Paul, it works
Yuval
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.9K Get Help
- 429 Global Discussions
- 147 Industry Talk
- 486 Announcements
- 5.2K Ideas & Feature Requests
- 86 Brandfolder
- 151 Just for fun
- 74 Community Job Board
- 498 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 305 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!