Formula issue for conditional formatting
I am trying to set up a formula to allow for conditional formatting but having some problems.
This is the formula I'm trying:
=IF([Actual]19 >= [Target]19, IF([Actual]19 < SUM([Target]19 * 0.1), IF([Actual]19 > SUM([Target]19 * 0.1), "GREEN", "AMBER", "RED"))
but the result leaves the cell blank with no error message.
What I'm trying to get it do is:
- If Actual >= Target = 'Green'
- If Actual is less than 10% of Target = 'Amber'
- If Actual is more than 10% of Target = 'Red'
Can anyone shed some light on where I'm going wrong please?
Comments
-
Silly me. I fixed it myself based on a previous question I posted. I should have checked that first!
-
Hi there, the IF statement requires that the THEN come after each IF. So in your case, you listed three IFS and then three THEN's... It should look like this:
IF(Condition, THEN, IF(Condition, THEN, ELSE))
Try this rendition of your formula.
=IF([Actual]19 >= [Target]19, "GREEN", IF([Actual]19 < SUM([Target]19 * 0.1, "AMBER", IF([Actual]19 > SUM([Target]19 * 0.1, "RED")))
That should return the correct results. Let me know if it worked!
-
Hi Mike,
I'm afraid it didn't work. It worked in some cells but in others the 'incorrect argument set' appeared.
I did find a work around though. I included an extra column to calculate 90% of the target and used this formula which works:
=IF([Actual]@row >= [Target]@row, "Green", IF([Actual]@row >= [90%]@row, "Amber", IF([Actual]@row < [90%]@row, "Red")))
Thanks for you help anyway.
-
Awesome. I am glad that I got you pointed in the right direction.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K 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
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!