Formula to auto pupulate status column based on dates
Hello,
I am trying to get the status column to populate based on date range.
I have a Start and Finish date in each row and want it to do the following
When Start date is < today, say "NOT STARTED"
When Finish date is > today, say "COMPLETE"
This third one is tricky - When Start date is < = today AND Finish date is > = today, then say "IN PROGRESS"
=IF(Start@row<TODAY(), “NOT STARTED”, IF(Finish@row>TODAY(), “COMPLETE”,IF(AND(Start@row>=TODAY(),Finish@row<=TODAY()),“IN PROGRESS”)))
Having the most trouble with the IF(AND...... function
=IF(AND(Start@row<TODAY(),Finish@row>TODAY()),“IN PROGRESS”)
Do I have too many parentheses? Should I be using brackets?
Thanks in advance
Best Answer
-
IF statements are read in order and only move on to the next IF when the criteria doesn't match.
This means you should be able to simply say "IN PROGRESS" as the final option, because that will only be read if the Start Date is not before Today and the End Date is not in the past (which would be < Today).
As another note, I see your quotes are the wrong type. Smartsheet needs quotes to be straight up and down, like so: " whereas yours are curved... ” vs ". If you type the quotes directly into the cell it will appear in the correct format.
Try:
=IF(Start@row < TODAY(), "NOT STARTED", IF(Finish@row < TODAY(), "COMPLETE", "IN PROGRESS"))
Let me know if this works for you!
Cheers,
Genevieve
Join us for Jumpstart 2025 with Community on 23 January (in two time zones)! 🎉 Register here.
Answers
-
IF statements are read in order and only move on to the next IF when the criteria doesn't match.
This means you should be able to simply say "IN PROGRESS" as the final option, because that will only be read if the Start Date is not before Today and the End Date is not in the past (which would be < Today).
As another note, I see your quotes are the wrong type. Smartsheet needs quotes to be straight up and down, like so: " whereas yours are curved... ” vs ". If you type the quotes directly into the cell it will appear in the correct format.
Try:
=IF(Start@row < TODAY(), "NOT STARTED", IF(Finish@row < TODAY(), "COMPLETE", "IN PROGRESS"))
Let me know if this works for you!
Cheers,
Genevieve
Join us for Jumpstart 2025 with Community on 23 January (in two time zones)! 🎉 Register here.
-
awesome, thanks so much for your help.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 142 Industry Talk
- 473 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!