Rank Values by Column Name

DAlmond123

New Member
Joined
Mar 2, 2021
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Hi All,

I have just recently discovered this forum after attempting to self resolve a ranking issue I have with Microsoft Excel.

I wanted to know if there was a way to rank values by column name?

For example, if I have entered the values below, is there a way the values in the row can be ranked by the name of the column as shown in the Desired Output column?
Test 1Test 2Desired Output
Value 110098Test 1
Value 29098Test 2

Thanks!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi & welcome to MrExcel.
How about
+Fluff 1.xlsm
ABCD
1Test 1Test 2Desired Output
2Value 110098Test 1
3Value 29098Test 2
Test
Cell Formulas
RangeFormula
D2:D3D2=INDEX($B$1:$C$1,MATCH(MAX(B2:C2),B2:C2,0))
 
Upvote 0
Solution
The easiest way would be with index and match.

Book1
ABCD
1Test 1Test 2Desired Output
2Value 110098Test 1
3Value 29098Test 2
Sheet3
Cell Formulas
RangeFormula
D2:D3D2=INDEX($B$1:$C$1,MATCH(MAX(B2:C2),B2:C2,0))
 
Upvote 0
Thank you for both for such a prompt response. This was exactly what I needed.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,516
Messages
6,119,980
Members
448,934
Latest member
audette89

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