# Find index for item with maximum value and multiple criteria

#### Innoguide

##### Board Regular
I need to find the item in column A with the highest value in column B where the value in column C and column D also match certain criteria

Starting simply without the criteria I would use:

=index(A:A,match(max(B:B),B:B,0)

And to find a match for multiple criteria I would use:

=index(A:A,match(1,Criteria1=C:C)*(Criteria2=D:D),0))

Any suggestions for how I could combine them to find the value in column A that has the maximum result in column B and matches the criteria for the other 2 columns

Last edited by a moderator:

### Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
=INDEX(A:A,MATCH(MAX(if(C:C=criteria1,if(D:D=criteria2,B:B)),B:B,0))

Try this with Ctrl+shift+Enter

=INDEX(A:A,MATCH(MAX(if(C:C=criteria1,if(D:D=criteria2,B:B)),B:B,0))

Try this with Ctrl+shift+Enter
Hmmm... coming up as too few arguments entered

I missed out one Bracket

=INDEX(A:A,MATCH(MAX(if(C:C=criteria1,if(D:D=criteria2,B:B))),B:B,0))

What seems to work is
=INDEX(A:A,MATCH(MAX(if(C:C=criteria1,B:B),if(D:D=criteria2,B:B)),B:B,0))
with Ctrl+shift+enter

Thanks for pointing me in the right direction!

What seems to work is
=INDEX(A:A,MATCH(MAX(if(C:C=criteria1,B:B),if(D:D=criteria2,B:B)),B:B,0))
with Ctrl+shift+enter
OK - mine isn't working either

and =INDEX(A:A,MATCH(MAX(if(C:C=criteria1,if(D:D=criteria2,B:B))),B:B,0)) comes up an error too

You have to edit the criteria with your own and after it is done press control shift enter

if not resolved please care to post a sample data using xl2bbb addin

Yes, I had done both, but here's what I get with formula in cell G4. I'm having problems finding any XL2bbb addin so my apologies but here's a simple screenshot

#### Attachments

• 1594845373508.png
15.5 KB · Views: 5
Book1
ABCDEFGHI
1A93Planned
2B13Planned
3r13Planned
4d143UnplannedA
5
6
7
Sheet3
Cell Formulas
RangeFormula
G4G4=INDEX(A:A,MATCH(MAX(IF(C:C=3,IF(D:D="Planned",B:B))),B:B,0))

Replies
3
Views
104
Replies
1
Views
387
Replies
1
Views
114
Replies
5
Views
488
Replies
3
Views
342

1,203,210
Messages
6,054,176
Members
444,707
Latest member
cahayagalax

### 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.

### Which adblocker are you using?

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

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