Match Cell Value to relevant heading

SteveT57

New Member
Joined
Jun 8, 2011
Messages
42
Hi I am trying match the largest cell value in a row to the relevant Heading & am struggling to come up with the right formula. I am trying to get the result in the Column Outcome. Example data is below. I have tried this formula with no luck =IFERROR(INDEX(R5:V15,MATCH(MAX(R7:V7),R7:V7,0),1),"no match")
All Star
Traffic DriverMargin DriverChurnerLoserOutcome
133Margin Driver
131
37
19
21551215

<tbody>
</tbody>



Thanks in advance SteveT
 
Last edited:

Some videos you may like

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

DWig

Board Regular
Joined
Sep 26, 2012
Messages
77
Just on first glance, it looks to me that your column and row references could be backward. You're trying to return the column title, correct?

Index/Match goes array, row number, column number. You're running your lookup to select a row right now, and it should be running to select a column for which you'll return the value in row 1.

Simple fix: switch the position of your MATCH function and the "1", such as:

=IFERROR(INDEX(R5:V15,1,MATCH(MAX(R7:V7),R7:V7,0)),"no match")

How are you handling it if there are two cells in a row that are tied for the largest value? In your example, I got "Churner" for my outcome in the first row of testable data. If I changed the margin driver value to 4, it returned that. However, in your example, it's returning margin driver. Just something you might want to address.

DWig
 

Watch MrExcel Video

Forum statistics

Threads
1,122,483
Messages
5,596,405
Members
414,064
Latest member
Duncthegreat

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