INDEX MATCH (or not?) to return column header based on the highest value in the row

TheGent

New Member
Joined
Oct 23, 2017
Messages
10
I have two worksheets, the first contains a list of items, the second a data set.

I am wanting to create a formula in sheet one, which looks up to the data set, finds the highest value in that row and then returns the column header (a date) from this data set.

I have included what would be the correct entries to return on worksheet one in red.

Can this be done?


Worksheet 1
SectionResult
Eggs04/10/2017
Bread20/09/2017
Milk27/09/2017
Worksheet 2
Section16/08/201713/09/201720/09/201727/09/201704/10/201711/10/201718/10/201720/10/2017
Eggs000011191120
Bread0002000680
Milk0000717390

<colgroup><col><col span="8"></colgroup><tbody>
</tbody>
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Worksheet one should be as below, some reasons dates changed when I formatted.

Worksheet 1
SectionResult
Eggs18/10/2017
Bread18/10/2017
Milk04/10/2017

<colgroup><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Try this in Worksheet 1, B2 and filled down

=INDEX(Sheet2!$B$1:$I$1,MATCH(MAX(Sheet2!B2:I2),Sheet2!B2:I2,0))
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,269
Members
449,075
Latest member
staticfluids

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