Changing of a date once it has passed
Hello Smartsheet community,
I am looking for a formula where a cell automatically changes to the next date once the current day has passed. For example:
If the date cell currently has a "12/3/2022", I want to replace it with next month's "1/3/2022" in the same cell.
I am not sure if this would be an automation or something that you can do as a formula. Just wanted to have some insight. Please let me know at your earliest convenience. Thank you!
Best Answer
-
Do you have a "base date" somewhere that would be used as a starting point? Or at least the day of the month would be all you really need. The formula though would look something like this:
=IF(DAY(TODAY())> 3, IFERROR(DATE(YEAR(TODAY()), MONT(TODAY()) + 1, 3), DATE(YEAR(TODAY()) + 1, 1, 3)), DATE(YEAR(TODAY()), MONTH(TODAY()), 3))
Answers
-
Do you have a "base date" somewhere that would be used as a starting point? Or at least the day of the month would be all you really need. The formula though would look something like this:
=IF(DAY(TODAY())> 3, IFERROR(DATE(YEAR(TODAY()), MONT(TODAY()) + 1, 3), DATE(YEAR(TODAY()) + 1, 1, 3)), DATE(YEAR(TODAY()), MONTH(TODAY()), 3))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!