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
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
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
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
awesome, thanks so much for your help.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 437 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!