Hi, please help with the following formula to return a text status:
I am trying to return the following status updates: "Planned" if Today's date is before the Planned start date, "Late" if Today's date is after the Due date, and "In progress" if Today's date is between the Planned start date and Due date. It works for "Planned" and "Late", but as soon as I add the "In progress" part it gives #Invalid operation error. Here is the formula I used:
=IF(TODAY() < [Planned start date]@row; "Planned"; IF(TODAY() > [Due date]@row; "Late"; IF([Planned start date]@row < TODAY() < [Due date]@row; "In progress")))
Best Answer
-
Hi @JeanMarcKruger,
Your final part of the formula would need to be an IF(AND) statement to work:
=IF(TODAY() < [Planned start date]@row, "Planned", IF(TODAY() > [Due date]@row, "Late", IF(AND([Planned start date]@row < TODAY(), TODAY() < [Due date]@row), "In Progress")))
How do you want to treat things which are due to finish today though - late or in progress?
If "Late", then you can amend the formula to:
=IF(TODAY() < [Planned start date]@row, "Planned", IF(TODAY() >= [Due date]@row, "Late", IF(AND([Planned start date]@row <= TODAY(), TODAY() <= [Due date]@row), "In Progress")))
If "In progress", then you can simplify the formula even further if there are no further variables:
=IF(TODAY() < [Planned start date]@row, "Planned", IF(TODAY() > [Due date]@row, "Late", "In Progress"))
Sample results:
Hopefully this gives you some options to choose from - which one you would like to use is your choice.
If you've any questions, just ask.
Answers
-
Hi @JeanMarcKruger,
Your final part of the formula would need to be an IF(AND) statement to work:
=IF(TODAY() < [Planned start date]@row, "Planned", IF(TODAY() > [Due date]@row, "Late", IF(AND([Planned start date]@row < TODAY(), TODAY() < [Due date]@row), "In Progress")))
How do you want to treat things which are due to finish today though - late or in progress?
If "Late", then you can amend the formula to:
=IF(TODAY() < [Planned start date]@row, "Planned", IF(TODAY() >= [Due date]@row, "Late", IF(AND([Planned start date]@row <= TODAY(), TODAY() <= [Due date]@row), "In Progress")))
If "In progress", then you can simplify the formula even further if there are no further variables:
=IF(TODAY() < [Planned start date]@row, "Planned", IF(TODAY() > [Due date]@row, "Late", "In Progress"))
Sample results:
Hopefully this gives you some options to choose from - which one you would like to use is your choice.
If you've any questions, just ask.
-
This worked perfectly, thank you very much:)
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!