How do I return a column name for highest value of a row

colinheslop1984

Board Regular
Joined
Oct 14, 2016
Messages
129
Office Version
  1. 2016
I need a formula to return the name of the column which contains the highest number within a chosen row. Below is the table layout I am using. Assume the column names are also the cell references I am using, i.e. B1 would be 200. I need the formula to tell me "H" is the highest and return the name of the column for H. The cell I want to show this data is R2.

[TABLE="width: 960"]
<tbody>[TR]
[TD][/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[TD]L[/TD]
[TD]M[/TD]
[TD]N[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD] 200[/TD]
[TD] 12[/TD]
[TD] 57[/TD]
[TD] 43[/TD]
[TD] 500[/TD]
[TD] 76[/TD]
[TD] 890[/TD]
[TD] 355[/TD]
[TD] 650[/TD]
[TD] 138[/TD]
[TD] 99[/TD]
[TD] 70[/TD]
[TD] 8[/TD]
[TD="align: right"]0.0%[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD="align: right"]0.0%[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[TD="align: right"]0.0%[/TD]
[/TR]
[TR]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
If there is a tie for highest value this will return the first header that has the max value.


Excel 2010
BCDEFGHIJKLMN
1header Bheader Cheader Dheader Eheader Fheader Gheader Hheader Iheader Jheader Kheader Lheader Mheader N
22001257435007689035565013899708
3
4header H
Sheet1
Cell Formulas
RangeFormula
B4=INDEX(B1:N1,MATCH(MAX(B2:N2),B2:N2,0))
 
Upvote 0
great, that worked perfectly. Now what if I wanted to know the top 5? in ranking order. SO R1 would show top, R2 second, R3 third, etc?
 
Upvote 0
if you want the column letter this will work up to column Z
=CHAR(MATCH(MAX(B2:N2),B2:N2,0)+65)
 
Upvote 0
if you want the column letter this will work up to column Z
=CHAR(MATCH(MAX(B2:N2),B2:N2,0)+65)

Or for all column Letters using a formula I got from Aladin:

=SUBSTITUTE(ADDRESS(1,MATCH(MAX(B2:N2),B2:N2,0)+1,4),1,"")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,828
Members
452,946
Latest member
JoseDavid

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