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
Check out the Formula Handbook template!