Forum Discussion
Find Highest Value In A Row, Return the column header - across sheets
Can you add an image of the array of data in Sheet2? It would help those of us who'd like to help you; otherwise we're not only having to diagnose a formula, but also visualize what it is that said formula is working on. Please, help us help you.
mathetes I can't provide the exact image as it's for working purposes.
Below is a similar example of what I'm trying to do. Basically in cell B4 on sheet 1 I want it to reference the header of the fruit that is the best producing in sheet 2. In the example below with the right formula that would produce cherries. (The formula I had originally won't match this, that too was just an example I threw together).
- mathetesApr 27, 2022Silver Contributor
I've gone ahead and answered my question in the attached spreadsheet. It assumes that, with multiple rows per type of product, your "highest" would be the one with the highest total for all rows, rather than the one with highest individual cell. Here's what it looks like, and the formula (looking for the highest in the totals row) is shown there in the top. It uses the relatively new FILTER function (so you'll need the most current version of Excel).
By the way, since it's possible that two or even three of the columns could end up producing exactly equal totals, the FILTER function will display all three in the cells to the right of the primary display. Try it when you've downloaded the spreadsheet.
- mathetesApr 27, 2022Silver Contributor
I've created a spreadsheet to test a few assumptions, ask a question or two of you along the lines of "What-if?" that spreadsheets are supposed to help answer.
For example, take a look at this screen grab.
So, some questions:
- The highest individual value is 50, in the third column, but the highest producing column is the second. Which is it that you'd want highlighted?
- And what would you want if there were more than two individual cells with an equal "highest" value?
- Or two columns that yielded the same highest total?