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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,882
Office Version
  1. 365
Platform
  1. Windows
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))
 
Solution

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
12,675
Office Version
  1. 365
Platform
  1. Windows
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))
 

DAlmond123

New Member
Joined
Mar 2, 2021
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Thank you for both for such a prompt response. This was exactly what I needed.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,882
Office Version
  1. 365
Platform
  1. Windows
Glad we could help & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,130,163
Messages
5,640,511
Members
417,148
Latest member
pe3087te

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
Top