Week number formula

Hi
I want to search the week but also only 2022 weeks as my sheet also has 2021 and i don't wish to display those.
This is what i have today
=WEEKNUMBER([Project Actual Completion Date]@row)
Thanks for your help
Best Answer
-
Use an IF formula and use the YEAR function to specify the year:
=IF(YEAR([Project Actual Completion Date]@row) = 2022, WEEKNUMBER([Project Actual Completion Date]@row), "")
If the year in the Project Actual Completion Date field equals 2022, show me the week number for that date, otherwise leave the cell blank.
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Answers
-
Use an IF formula and use the YEAR function to specify the year:
=IF(YEAR([Project Actual Completion Date]@row) = 2022, WEEKNUMBER([Project Actual Completion Date]@row), "")
If the year in the Project Actual Completion Date field equals 2022, show me the week number for that date, otherwise leave the cell blank.
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
Hi Jeff
π
thank you for your help. it works perfectly.
have a great weekend
-
Happy to help!
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.9K Get Help
- 474 Global Discussions
- 207 Use Cases
- 517 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 83 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!