From five columns with values (High, Medium High, Medium, Medium Low, Low), select largest

Nathan_K

New Member
Joined
Jan 4, 2023
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have a spreadsheet that includes 5 columns, with each cell containing 5 possible words: High, Medium High, Medium, Medium Low or Low. For each row, I want to enter into a 6th column, the highest value/word between the 5 adjoining cells. In the examples below, within each row, the highest value between Columns A to E, is placed into Column F. Please kindly advise me what would be a good way to do this - what formula could I place in Column F that would make the comparison and place the result in Column F?

Thank you very much for any help you can lend.

I tried using IF(CountIF) but it popped out error message of too many arguments in the function. Maybe i wasn't doing it correctly on the formula.

Nathan


For example:
Col A Col B Col C Col D Col E Col F
High Medium High Medium-Low Low High
Low Medium Medium Medium-High Low Medium High
Low Low Low Medium Low Medium
Medium Low Medium Medium-High High High
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Welcome to the Forum!

Do you mean like this?

ABCDEFGHI
1"Highest"
2HighMediumHighMedium LowLowHighHigh
3LowMediumMediumMedium HighLowMediumMedium HighScale
4LowLowLowMediumLowMediumMediumHigh
5MediumLowMediumMedium HighHighHighHighMedium High
6LowLowLowLowLowLowLowMedium
7Medium Low
8Low
9
Sheet1
Cell Formulas
RangeFormula
G2:G6G2=INDEX(Scale,MIN(MATCH(A2:F2,Scale,)))
Named Ranges
NameRefers ToCells
Scale=Sheet1!$I$4:$I$8G2:G6
 
Upvote 0
Welcome to the Forum!

Do you mean like this?

ABCDEFGHI
1"Highest"
2HighMediumHighMedium LowLowHighHigh
3LowMediumMediumMedium HighLowMediumMedium HighScale
4LowLowLowMediumLowMediumMediumHigh
5MediumLowMediumMedium HighHighHighHighMedium High
6LowLowLowLowLowLowLowMedium
7Medium Low
8Low
9
Sheet1
Cell Formulas
RangeFormula
G2:G6G2=INDEX(Scale,MIN(MATCH(A2:F2,Scale,)))
Named Ranges
NameRefers ToCells
Scale=Sheet1!$I$4:$I$8G2:G6
Hi StephenCrump,

Thanks very much for the reply and suggestion. However, can i check if the results can be replicated using IF and Countif function? the reason why i asking for alternative method is because using Index function, i need to maintain a separate table to extract the correct value.

Thank you
 
Upvote 0
Hi StephenCrump,

Your above solution works, however can enlighten me on how the formula works for this problem?

Thank you very much
 
Upvote 0
Using @StephenCrump 's solution in post #2 - converting for use without a separate named range - does the following addition to Stephen's solution more closely meet your requirements?

Book1
ABCDEFGH
1 "Highest"
2HighMediumHighMedium LowLowHighHigh
3LowMediumMediumMedium HighLowMediumMedium High
4LowLowLowMediumLowMediumMedium
5MediumLowMediumMedium HighHighHighHigh
6LowLowLowLowLowLowLow
7
Sheet1
Cell Formulas
RangeFormula
G2:G6G2=INDEX({"High","Medium High","Medium","Medium Low","Low"},MIN(MATCH(A2:F2,{"High","Medium High","Medium","Medium Low","Low"},)))
 
Upvote 0
Using @StephenCrump 's solution in post #2 - converting for use without a separate named range - does the following addition to Stephen's solution more closely meet your requirements?

Book1
ABCDEFGH
1 "Highest"
2HighMediumHighMedium LowLowHighHigh
3LowMediumMediumMedium HighLowMediumMedium High
4LowLowLowMediumLowMediumMedium
5MediumLowMediumMedium HighHighHighHigh
6LowLowLowLowLowLowLow
7
Sheet1
Cell Formulas
RangeFormula
G2:G6G2=INDEX({"High","Medium High","Medium","Medium Low","Low"},MIN(MATCH(A2:F2,{"High","Medium High","Medium","Medium Low","Low"},)))
Hi Kevin,

I tried copying your formula but it doesnt seem to work.

Appreciate your further advice.

Thanks much
 
Upvote 0
Not sure what "doesnt seem to work" actually means. Does it return an error (#Name!/#Value!/#Ref! etc.), does it return a blank, or an incorrect result? Did you try copying the XL2BB sheet I posted to a blank worksheet, or did you copy the formula only and paste it into a cell in column F? Is the issue the fact that you only wanted the "highest" value returned from columns A-E with the result put into column F? If that is the case, try the alteration below instead:

Book1
ABCDEFG
1 "Highest"
2HighMediumHighMedium LowLowHigh
3LowMediumMediumMedium HighLowMedium High
4LowLowLowMediumLowMedium
5MediumLowMediumMedium HighHighHigh
6LowLowLowLowLowLow
7
Sheet1
Cell Formulas
RangeFormula
F2:F6F2=INDEX({"High","Medium High","Medium","Medium Low","Low"},MIN(MATCH(A2:E2,{"High","Medium High","Medium","Medium Low","Low"},)))
 
Upvote 0
Another option
Fluff.xlsm
ABCDEFG
1
2HighMediumHighMedium LowLowHighHigh
3LowMediumMediumMedium HighLowMediumMedium High
4LowLowLowMediumLowMediumMedium
5MediumLowMediumMedium HighHighHighHigh
6LowLowLowLowLowLowLow
Data
Cell Formulas
RangeFormula
G2:G6G2=TAKE(SORTBY(A2:F2,MATCH(A2:F2,{"High","Medium High","Medium","Medium Low","Low"},0)),,1)
 
Upvote 0
Solution
Another option
Fluff.xlsm
ABCDEFG
1
2HighMediumHighMedium LowLowHighHigh
3LowMediumMediumMedium HighLowMediumMedium High
4LowLowLowMediumLowMediumMedium
5MediumLowMediumMedium HighHighHighHigh
6LowLowLowLowLowLowLow
Data
Cell Formulas
RangeFormula
G2:G6G2=TAKE(SORTBY(A2:F2,MATCH(A2:F2,{"High","Medium High","Medium","Medium Low","Low"},0)),,1)
Hi Fluff, thank you very much! this solution works very well :):)
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

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