I have some table data in Excel, and I've used the MAX formula to return the highest value. Now I need to write a couple formulas that return the values of the intersecting row and column headings based on that highest value.
Here's what the table inside my sample worksheet looks like.
MaxValue = 106,547 RowValue = ?????
ColValue = ?????
ItemA ItemB ItemC ItemD ItemE ItemF
SiteA 784 3,357 - 77 8 54,789
SiteB 589 259 89 106,547 56 2,587
SiteC 635 678 - 9,963 - 26,993
SiteD 1,257 9 41 589 - 6,520
SiteE 87 3,688 476 46,719 7,899 369
The highest value contained in the table is 106,547. So I want the formulas to return ItemD for the RowValue result and SiteB for the ColValue result.
Normally I would come at this in VBA, but this particular approach needs to happen in Excel. I'm thinking INDEX MATCH is the right approach, because I can obtain the correct values using the following formulas in the worksheet (they don't quite translate to the table I posted above, but I can't post images yet, sorry).
RowValue = INDEX($B$4:$G$4,MATCH(C1,$B$6:$G$6,0))
ColValue = INDEX($A$5:$A$9,MATCH(C1,$E$5:$E$9,0))
What I need is to be able to find those values without hardcoding the row information.
