Index-Match based on 3 criteria

Johnelbek

New Member
Joined
Mar 22, 2013
Messages
3
Dear all,

I am currently using the following Index-Match formula to return values based on one criteria:

=IFERROR(INDEX($A$1:$M$2000;SMALL(IF($E$1:$E$2000=$D$5;ROW($E$1:$E$2000);"");ROW($A1));MATCH(K$103;crystalheader;0));"")

The condition check is: "IF($E$1:$E$2000=$D$5;" where $D$5 is the name of a city. I wish to include to more criteria, to further narrow the values which are returned. I need to do a check on additionally two values which are located in $E$5 & $F$5.

So basically, the user selects 3 values from a dropdown and the index-match will return the corresponding values. I am having difficultes including the 2 other critieria. I've tried with an AND function:

SMALL(IF((AND($E$1:$E$2000=$D$5);($F$1:$F$2000=$E$5);($G$1:$G$2000=$E$5));ROW($E$1:$E$2000);""). This however, does not work.

Any ideas would be highly appreciated.
Thanks.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Dear all,

I am currently using the following Index-Match formula to return values based on one criteria:

=IFERROR(INDEX($A$1:$M$2000;SMALL(IF($E$1:$E$2000=$D$5;ROW($E$1:$E$2000);"");ROW($A1));MATCH(K$103;crystalheader;0));"")

The condition check is: "IF($E$1:$E$2000=$D$5;" where $D$5 is the name of a city. I wish to include to more criteria, to further narrow the values which are returned. I need to do a check on additionally two values which are located in $E$5 & $F$5.

So basically, the user selects 3 values from a dropdown and the index-match will return the corresponding values. I am having difficultes including the 2 other critieria. I've tried with an AND function:

SMALL(IF((AND($E$1:$E$2000=$D$5);($F$1:$F$2000=$E$5);($G$1:$G$2000=$E$5));ROW($E$1:$E$2000);""). This however, does not work.

Any ideas would be highly appreciated.
Thanks.

Solved with:

IF(($E$1:$E$2000=$D$5)*($F$1:$F$2000=$E$5)*($G$1:$G$2000=$E$5))

What is the first cell you enter the formula?
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,816
Members
449,049
Latest member
cybersurfer5000

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