Find largest value in data but also return result if the largest value appears twice

Sifuevs

New Member
Joined
May 8, 2015
Messages
25
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,
I have an Excel sheet that scores investigation outcomes based on criteria met by a series of questions.
It then looks at the highest score and returns an assumption.
My issue is that if 2 different questions score 10 (or the same score) then it will only return one assumption.
I would like a formula so i can display both assumptions in separate columns. Please see below.
I am a relative novice at excel so would like to keep the structure of sheet and not change everything. I understand that my formula is probably not the most efficient way.
In advance thank you to everyone who provides input.
Have a wonderful day :)

1712899319654.png


1712899374738.png
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Why not filter the column containing the score?
Hi Arthur,
thanks for the reply.
The sheet is being used by staff who have no Excel experience.
So cell BE returns the highest result code and BF returns the best assumption based on the code in BE. I would like to have another column that would return the secondary best assumption.
So as M has scored 10 and I can get it to display the assumption based on the score i would like also to display the O assumption result as this has also scored 10.
In an ideal world if two results score 10 display both assumptions in separate cells otherwise display the highest assumption first and then look for the next highest scoring reason code and display that assumption in a separate cell.
Hope all this makes sense lol.

Thank you
 
Upvote 0
You didn't leave any column for a tie-breaker. Where would you want it to be? Can there be more than 2 "best"?
Can you show an expected output.
 
Upvote 0
You didn't leave any column for a tie-breaker. Where would you want it to be? Can there be more than 2 "best"?
Can you show an expected output.
Hi Cubist,
thanks for the reply. I think maybe the tie breaker in BG and then alternate assumptions in BH and so on. Also, yes there may be a possibility that there may be more than 2 "best" or at least 2 scores the same.
Appreciate you my friend, thank you.
 
Last edited:
Upvote 0
This shows the ranking in descending order. Did you want to call out tie-breakers or having a descending order list from highest to lowest is ok.
Book3
AOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBI
4MM COUNTI I COUNTLL COUNTOO COUNTRR COUNTKK COUNTA1A1 COUNTA2A2 COUNTBESTReasoningAlternatives
510M06L10O02K00MOLK
60000000
70000000
Sheet1
Cell Formulas
RangeFormula
BE5BE5=TAKE(CHOOSECOLS(SORT(WRAPROWS(AO5:BD5,2,""),1,-1),2),1)
BG5:BI5BG5=TOROW(DROP(CHOOSECOLS(SORT(WRAPROWS(AO5:BD5,2,""),1,-1),2),1),3)
Dynamic array formulas.
 
Upvote 0
This shows the ranking in descending order. Did you want to call out tie-breakers or having a descending order list from highest to lowest is ok.
Book3
AOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBI
4MM COUNTI I COUNTLL COUNTOO COUNTRR COUNTKK COUNTA1A1 COUNTA2A2 COUNTBESTReasoningAlternatives
510M06L10O02K00MOLK
60000000
70000000
Sheet1
Cell Formulas
RangeFormula
BE5BE5=TAKE(CHOOSECOLS(SORT(WRAPROWS(AO5:BD5,2,""),1,-1),2),1)
BG5:BI5BG5=TOROW(DROP(CHOOSECOLS(SORT(WRAPROWS(AO5:BD5,2,""),1,-1),2),1),3)
Dynamic array formulas.
Thanks Cubist.
Yes, maybe it would be a good idea to call out the tie-breakers. Thanks
 
Upvote 0
In a blank cell, what happens when you type =SORT or =SORTBY. Do they poppulate?
Are you using version 365 of Excel?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top