Excel find maximum in range based on two criteria, return address and show value based on address

jczupryk

New Member
Joined
Jul 15, 2011
Messages
1
Hello,

I am creating a system where I need Google Docs version of Excel to find the maximum based on two criteria, tell me the address of the cell the formula found this number and then convert to the column header. Ideally, I'd be able to see that a student scored a 100 on learning goal on a quiz and then have the formula automatically report out what this student got the 100 on based on the column header and conversely if a student got a 0 on a learning goal, I'd be able to report out what was the minimum value of the student score. This way, I could generate a mail merge saying:

"John needs to work on ADDING FRACTIONS (minimum value), but is doing well on SUBTRACTING DECIMALS (maximum value)."

Right now, this is what I have:

=ARRAYFORMULA(INDEX(W11:GD11,MAX(IF($W$6:$GD$6&$W$7:$GD$7=P$8&P$9,$W11:$GD11,""))))

This is because student grades are in columns W(ROW):GD(ROW) and the subject is in row 6, test name in row 7. I type in the subject and test I want in P8 and P9. Based on this formula, I want the spreadsheet to find the maximum value within W11:GD11 based on the criteria found in P8 and P9 and then tell me the address of where this cell is. Finally, based on the address, I'd want the cell to report back the criteria heading in W7:GD7 (for example: ADDING FRACTIONS and SUBTRACTING DECIMALS).

Any help is appreciated!
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,215,036
Messages
6,122,794
Members
449,095
Latest member
m_smith_solihull

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