How to write a RYG formula for a range of values?

I am working on a formula for:
1) If cell is empty = Yellow
2) If cell is between -20 to 20 = Green
3) Otherwise = Red
How should I write this formula?
I am able to get the formula right if it is simpler as follows:
1) If cell is empty = Yellow
2) If cell is 0 = Green
3) Otherwise = Red
=IF(ISBLANK([Cell]@row), "Yellow", (IF([Cell]@row = 0, "Green", "Red")))
Appreciate assistance. Thank you.
Vivien Chong
Modern Work Management Consultant @ 57Network Consultancy Sdn Bhd
Connect with us: 57network.com
Best Answer
-
Hi @Vivien Chong
Hope you are fine, please try the following formula and convert it to column formula:
=IF(ISBLANK(Amount@row), "Yellow", IF(AND(Amount@row <= 20, Amount@row >= -20), "Green", "Red"))
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
-
Hi @Vivien Chong
Hope you are fine, please try the following formula and convert it to column formula:
=IF(ISBLANK(Amount@row), "Yellow", IF(AND(Amount@row <= 20, Amount@row >= -20), "Green", "Red"))
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
- 67.3K Get Help
- 462 Global Discussions
- 156 Industry Talk
- 508 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 81 Community Job Board
- 518 Show & Tell
- 35 Member Spotlight
- 3 SmartStories
- 307 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!