RYG Automation with <>=
I am trying to automate a RYG ball response based on a given Margin. The ideal would be >= 75, would be green, < 75, Yellow, and less than 68, Red.
I have tried a number of iterations and this is the the farthest I have been able to take it.
=IF([MARGIN]1 >= 75), "Green”, IF(AND([MARGIN]1 <= 74), "Yellow”), IF([MARGIN]1<=65), "Red"))))
Answers
-
You have an "If(And" without the "And" piece. I don't know if you want less than 68 to be red (per your comments) or less than 65 to be red (per your formula example), so I wrote it to match your formula example...Note: If you column header is strictly "Margin" you don' t need the square brackets in your formula, only if there is a space in the name or if the name ends in a number.
Try this:
=IF(Margin1 >= 75, "Green", IF(AND(Margin1 <= 74, Margin1 >= 66), "Yellow", "Red"))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!