Formula Help Needed - IF Statement w/ Multiple Conditions
Hi-
I'm attempting to return the "Green, Yellow, Red, Gray" colors with a column formula based off the Status and Planned Completion Date of my tasks.
Best Answer
-
Hey @JIM_AFO
I placed your status exclusion criteria at the beginning of the formula, which then simplified the date criteria at the end of the formula. I assumed that your screenshot which shows "Filed / Complete" means "Complete" If this is not true, change the wording of the textstring within quotes to reflect exactly the textstring in the Status column.
=IF(Status@row = "Filed / Complete", "Green", IF(Status@row = "N/A", "Gray", IF(AND(ISDATE([Planned/Actual Completion Date]@row), [Planned/Actual Completion Date]@row <= TODAY(10)), "Red", IF(AND(ISDATE([Planned/Actual Completion Date]@row), [Planned/Actual Completion Date]@row <= TODAY(21)), "Yellow"))))
Because Red color showed when no date was present, I added the condition that the Planned/Actual Completion Date had to be a date.
Does this work for you?
Kelly
Answers
-
Hey @JIM_AFO
I placed your status exclusion criteria at the beginning of the formula, which then simplified the date criteria at the end of the formula. I assumed that your screenshot which shows "Filed / Complete" means "Complete" If this is not true, change the wording of the textstring within quotes to reflect exactly the textstring in the Status column.
=IF(Status@row = "Filed / Complete", "Green", IF(Status@row = "N/A", "Gray", IF(AND(ISDATE([Planned/Actual Completion Date]@row), [Planned/Actual Completion Date]@row <= TODAY(10)), "Red", IF(AND(ISDATE([Planned/Actual Completion Date]@row), [Planned/Actual Completion Date]@row <= TODAY(21)), "Yellow"))))
Because Red color showed when no date was present, I added the condition that the Planned/Actual Completion Date had to be a date.
Does this work for you?
Kelly
-
Hi Kelly-
This worked perfectly. Thank you!
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!