Multiple if statements
I am receiving an unparseable error and I don't understand why. I have two different if statements. They work individually.
=IF([Working days until due date]@row > 0; "Red")
=IF([Working days until due date]@row < 0; "Green")
But when I combine them it won't work:
=IF([Working days until due date]@row > 0; "Red"); IF([Working days until due date]@row < 0; "Green")
Can anybody help me out?
Best Answers
-
@Roos
Hope you are fine, please try the following formula:
=IFERROR(IF([Working days until due date]@row >= 0, "Red", IF([Working days until due date]@row < 0, "Green")), "")
the following screenshot shows the result:
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
-
Please accept my answer. Iferror is used to avoid any unexpected results because if bad inputs
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
Answers
-
The third one I would like to add is: =IF(AND([Working days until due date]@row > 0; [Working days until due date]@row < 10); "Yellow")
-
@Roos
Hope you are fine, please try the following formula:
=IFERROR(IF([Working days until due date]@row >= 0, "Red", IF([Working days until due date]@row < 0, "Green")), "")
the following screenshot shows the result:
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
-
This worked thank you so much.
Could you explain what the iferror does?
-
Please accept my answer. Iferror is used to avoid any unexpected results because if bad inputs
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.8K Get Help
- 406 Global Discussions
- 219 Industry Talk
- 457 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 297 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!