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
- 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
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!