If / Then using the red, yellow, green
I am new to Smartsheets, so this may be a basic knowledge question ...
I'm trying to use the red, yellow, green, (really just red and green) for the following scenario ...
Start date is 10/1/20, due date is 10/6/20, another column for completed date.
Using the completed date if it is <due date, then green, if it is finish date, then red. Here is what I have . The green works, but I can't get the red to display.
=IF(Completed7 < Due7, "Green"), IF(Completed7 > Due7, "Red")
Thank you in advance !
Best Answers
-
When you are using nested IF statements, you can't close out the brackets on the first IF statement.
=IF(Completed7 < Due7, "Green", IF(Completed7 > Due7, "Red"))
By moving your closing parenthesis to the end, you are allowing the first IF statement to evaluate the second IF statement as the "False" condition. Let me know if it works!
-
Try this.
Edit to include both columns.
=IF(OR(Due@row = "", Completed@row = ""), "", IF(Completed@row < Due@row, "Green", IF(Completed@row > Due@row, "Red")))
Did that work?
I hope that helps!
Be safe and have a fantastic week!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
Excellent!
You're more than welcome!
✅Remember! Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Answers
-
When you are using nested IF statements, you can't close out the brackets on the first IF statement.
=IF(Completed7 < Due7, "Green", IF(Completed7 > Due7, "Red"))
By moving your closing parenthesis to the end, you are allowing the first IF statement to evaluate the second IF statement as the "False" condition. Let me know if it works!
-
Thank you !! I am somewhat new to writing if then statements and figured it was the parenthesis, but just could not get it figured out. Looks to be working. 😀
-
Awesome! Glad it's working. 😊
-
The green / red status symbol displays based on the date entered, but now as I start to populate, it shows green on all columns even through I don't have any data in the completed column yet. When I display the sheet, it kind of is misleading as it shows future dates as green. Is there a way I can put in there to only use the status if there is data in the completed column?
Does this make sense?
-
Hey Mark,
I'm still new to this chat thing and it seems like I may be missing something here ... I wanted to see if there was a way to not show any status (red/green) if there is no date entered into the column it is pulling data for the if/then. Do you have any thoughts?
-
Try this.
Edit to include both columns.
=IF(OR(Due@row = "", Completed@row = ""), "", IF(Completed@row < Due@row, "Green", IF(Completed@row > Due@row, "Red")))
Did that work?
I hope that helps!
Be safe and have a fantastic week!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
FANTATIC !!! Thank you so much for the help.
Seems like I will be learning if/then statements with an awesome new tool !!: :)
-
Excellent!
You're more than welcome!
✅Remember! Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives