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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!