How do force a date to land on the following Monday?
I have a column with submittal date and this information will be reviewed the following Monday, then will be up for approval the Wednesday after that. Is there a way to create a review date and approval date?
I submit date on 5/17/22, I want a calculated date for the following Monday 5/23/22 then another for Wednesday 5/25/22
Best Answer
-
I didn't write this formula, but I adapted it to work without helper columns. This gives you the following Monday of any date.
=IF(WEEKDAY(DATE(YEAR([Submittal Date]@row), 1, 1) + (WEEKNUMBER([Submittal Date]@row) + 1) * 7) = 2, (DATE(YEAR([Submittal Date]@row), 1, 1) + (WEEKNUMBER([Submittal Date]@row) + 1) * 7), (DATE(YEAR([Submittal Datee]@row), 1, 1) + (WEEKNUMBER([Submittal Date]@row) + 1) * 7) - (WEEKDAY(DATE(YEAR([Submittal Date]@row), 1, 1) + (WEEKNUMBER([Submittal Date]@row) + 1) * 7) - 2))
This one gives you the Wednesday of the week following any date.
=IF(WEEKDAY(DATE(YEAR([Submittal Date]@row), 1, 1) + (WEEKNUMBER([Submittal Date]@row) + 1) * 7) = 4, (DATE(YEAR([Submittal Date]@row), 1, 1) + (WEEKNUMBER([Submittal Date]@row) + 1) * 7), (DATE(YEAR([Submittal Datee]@row), 1, 1) + (WEEKNUMBER([Submittal Date]@row) + 1) * 7) - (WEEKDAY(DATE(YEAR([Submittal Date]@row), 1, 1) + (WEEKNUMBER([Submittal Date]@row) + 1) * 7) - 4))
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
-
I didn't write this formula, but I adapted it to work without helper columns. This gives you the following Monday of any date.
=IF(WEEKDAY(DATE(YEAR([Submittal Date]@row), 1, 1) + (WEEKNUMBER([Submittal Date]@row) + 1) * 7) = 2, (DATE(YEAR([Submittal Date]@row), 1, 1) + (WEEKNUMBER([Submittal Date]@row) + 1) * 7), (DATE(YEAR([Submittal Datee]@row), 1, 1) + (WEEKNUMBER([Submittal Date]@row) + 1) * 7) - (WEEKDAY(DATE(YEAR([Submittal Date]@row), 1, 1) + (WEEKNUMBER([Submittal Date]@row) + 1) * 7) - 2))
This one gives you the Wednesday of the week following any date.
=IF(WEEKDAY(DATE(YEAR([Submittal Date]@row), 1, 1) + (WEEKNUMBER([Submittal Date]@row) + 1) * 7) = 4, (DATE(YEAR([Submittal Date]@row), 1, 1) + (WEEKNUMBER([Submittal Date]@row) + 1) * 7), (DATE(YEAR([Submittal Datee]@row), 1, 1) + (WEEKNUMBER([Submittal Date]@row) + 1) * 7) - (WEEKDAY(DATE(YEAR([Submittal Date]@row), 1, 1) + (WEEKNUMBER([Submittal Date]@row) + 1) * 7) - 4))
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!
-
@Jeff Reisman that is great! Thank you for the help
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!