IF formula to return text response based on max value
I am trying to write a formula that will return "risk avoidance" if the "risk score" is the highest value of 4 values.
If Risk Score is greater than Quality, Efficiency and User Experience then return "Risk Avoidance".
If Quality score is highest then return "Quality". If Efficiency score is highest then return "Efficiencies Gained". If User Experience is highest then return "User Experience".
Best Answer
-
First we will need to get the highest score...
MAX([Risk Score 35%]@row:[User Experience Score 10%]@row)
Now we can use that in a nested IF to output the appropriate text value.
=IF([Risk Score 35%]@row = MAX([Risk Score 35%]@row:[User Experience Score 10%]@row), "Risk Avoidance", IF([Quality Score 20%]@row = MAX([Risk Score 35%]@row:[User Experience Score 10%]@row), "Quality", IF([Efficiency Score 35%]@row = MAX([Risk Score 35%]@row:[User Experience Score 10%]@row), "Efficiencies Gained", IF([User Experience Score 10%]@row = MAX([Risk Score 35%]@row:[User Experience Score 10%]@row), "User Experience"))))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Answers
-
First we will need to get the highest score...
MAX([Risk Score 35%]@row:[User Experience Score 10%]@row)
Now we can use that in a nested IF to output the appropriate text value.
=IF([Risk Score 35%]@row = MAX([Risk Score 35%]@row:[User Experience Score 10%]@row), "Risk Avoidance", IF([Quality Score 20%]@row = MAX([Risk Score 35%]@row:[User Experience Score 10%]@row), "Quality", IF([Efficiency Score 35%]@row = MAX([Risk Score 35%]@row:[User Experience Score 10%]@row), "Efficiencies Gained", IF([User Experience Score 10%]@row = MAX([Risk Score 35%]@row:[User Experience Score 10%]@row), "User Experience"))))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
@Paul Newcome this is great, thank you! The nested formulas always get me
-
Happy to help. 👍️
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 379 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 302 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!