IF formula to return text response based on max value
![Melissa Torrez](https://us.v-cdn.net/6031209/uploads/defaultavatar/nWRMFRX6I99I6.jpg)
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"))))
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"))))
-
@Paul Newcome this is great, thank you! The nested formulas always get me
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.1K Get Help
- 348 Global Discussions
- 199 Industry Talk
- 427 Announcements
- 4.4K Ideas & Feature Requests
- 133 Brandfolder
- 127 Just for fun
- 127 Community Job Board
- 455 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 282 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!