Find highest value in row and return Row header

Castor

New Member
Joined
Mar 20, 2019
Messages
20
Office Version
  1. 2016
Platform
  1. Windows
Hi all,

Did a search and couldn't locate an already existing post. I am looking for a way to search for the highest value in a row and return that row's header - I see many for returning the column header but not the row. For example..


Test.xlsx
CDEFGHIJKLMNOPQ
7July 2021August 2021September 2021October 2021November 2021December 2021January 2022February 2022March 2022April 2022May 2022June 2022GRAND TOTAL
8Employee NameBlack2271682332211412159170
9Blue411343117
10Green734529333
11Orange630544721896100
12Red123
Sheet3
Cell Formulas
RangeFormula
Q8:Q12Q8=SUM(E8:P8)



Basically, I want to take the row with the highest grand total value, and return the row header of that row - in this case the highest grand total is 170, so I want to return 'Black"

Any help is appreciated!

Thanks
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
What should happen if two (or more) rows have the same total?
 
Upvote 0
How about

=INDEX(D8:D12,MATCH(MAX(Q8:Q12),Q8:Q12,0))

This is working - I realized - i have multiple employees - if I have multiple employees how can I return the highest value corresponding to each employee? Can this be done with a single formula that I could jsut click and drag down? Like a formula with two 'match' values? for example

Copy of 2022_08_10-All Provider Radiology Info Monthly By DOS updated EM-99999 report-DBT (006).xlsx
CDEFGHIJKLMNOPQ
7July 2021August 2021September 2021October 2021November 2021December 2021January 2022February 2022March 2022April 2022May 2022June 2022GRAND TOTAL
8JoeBlack2271682332211412159170
9Blue411343117
10Green734529333
11Orange630544721896100
12Red123
13
14
15July 2021August 2021September 2021October 2021November 2021December 2021January 2022February 2022March 2022April 2022May 2022June 2022GRAND TOTAL
16TomBlack21222153119
17Blue12155216
18Green315356225344
19Orange101287711031279
20Red111322212
21
22
23July 2021August 2021September 2021October 2021November 2021December 2021January 2022February 2022March 2022April 2022May 2022June 2022GRAND TOTAL
24MikeBlack2122613
25Blue11226
26Green11
27Orange216128114953
28Red25271710591590
29
30
31Informational Purpose:Value should be…
32JoeBlack
33TomOrange
34MikeRed
Sheet3
Cell Formulas
RangeFormula
Q24:Q28,Q16:Q20,Q8:Q12Q8=SUM(E8:P8)


What should happen if two (or more) rows have the same total?

In these cases we could just return the color with the first highest value when the colors are sorted alphabetically.
 
Upvote 0
With your version of Excel you are probably better off just changing the ranges for each row in D32:D34
 
Upvote 0

Forum statistics

Threads
1,223,895
Messages
6,175,257
Members
452,625
Latest member
saadat28

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