Nested IF Function using Harvey Balls
Hi SS Community,
I have the following nested IF column formula . The formula works properly through the "Red" part, but once I attempt to type DECLINED in the "Revised Final Date" column, the formula returns #invalidoperation. What can I change in my formula to show a Gray Harvey ball when I type DECLINED in the "Revised Final Date" column? Picture posted below.
Thank you,
Aleya Krenek
Education Service Center Region 13
Grants and Contracts Project Coordinator
Best Answers
-
Your terms were out of order: with nested ifs, it is important to go from most to least restrictive - its hard to see here because you are using dates and text as tests.
Clean version:
=IF([Revised Final Date]@row = "", "Yellow", IF([Revised Final Date]@row = "Declined", "Gray", IF([Revised Final Date]@row >= TODAY(), "Green", "Red")))
Less work:
=IFERROR(IF([Revised Final Date]@row >= TODAY(), "Green", IF(ISBLANK([Revised Final Date]@row), "Yellow", IF([Revised Final Date]@row < TODAY(), "Red"))), "Gray")
-
@Deric --This worked great! Thank you :)
Best,
Aleya Krenek
Education Service Center Region 13
Grants and Contracts Project Coordinator
Answers
-
Your terms were out of order: with nested ifs, it is important to go from most to least restrictive - its hard to see here because you are using dates and text as tests.
Clean version:
=IF([Revised Final Date]@row = "", "Yellow", IF([Revised Final Date]@row = "Declined", "Gray", IF([Revised Final Date]@row >= TODAY(), "Green", "Red")))
Less work:
=IFERROR(IF([Revised Final Date]@row >= TODAY(), "Green", IF(ISBLANK([Revised Final Date]@row), "Yellow", IF([Revised Final Date]@row < TODAY(), "Red"))), "Gray")
-
@Deric --This worked great! Thank you :)
Best,
Aleya Krenek
Education Service Center Region 13
Grants and Contracts Project Coordinator
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!