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"))))
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
- 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!