# Combining IF/ INDEX/ MATCH with multiple criteria over multiple sheets

#### Ferlucia

##### New Member
Hello everyone,

I know this is a question that's been asked a lot (I know cause I read them all).
But for some reason it doesn't work for me, so I wonder what I'm doing wrong.

What this formula should do:
It has to search the right price of an article based om 2 criteria: the name (column A) and the quality (column B)
IF the amount is lower than 50, it needs to take the price out of column C, and IF it is above 50 then it has to take the price out of column D.

The sheet with all the prices per article is sheet 2 (Blad2)
The sheet where I type the name (F31), the quality (J31) and the amount (L31) is sheet 1 (Hout-idee NL).

This is the formula I have:

But I constantly get errors, no matter how i adjust it...

The answer is probebly simple and obvious, but I don't see it.

Hope you can help me

### Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Maybe you need to lock your criteria on cell J31

IF(L31<=50

when you copied your formula down or cross, your condition will go away

I'm afraid I don't understand.

I haven't copied this formula jet
This is the original witch I'm trying to get to work first, before I copy it...

Or did you mean something else?

Try this (you may need to extend the amount of rows):

I tried and I still get an error.
When I pressed evaluate, I got many rows of numbers and true, not true values.

Many rows?? You should have only one formula as you are only looking for one price

Hout-idee NL

F31 houses an article name.
J31 houses a quality qualifying value.
L31 houses an amount.

Control+shift+enter, not just enter:
Rich (BB code):
``````=INDEX(Blad2!\$C\$5:\$D\$14;
IF(\$L31>50;2;1))
``````

For some reason, It suddenly works!
(Maybe I pressed a wrong button somewhere the first time?)

Thank you so much

For some reason, It suddenly works!
(Maybe I pressed a wrong button somewhere the first time?)

Thank you so much

Invoking SumProduct for a retrieval task is a risky idea...

That might be true,
So I tried your formula as well, but it gave an error :s

When I pressed evaluate it underlined this part:

Replies
5
Views
207
Replies
1
Views
497
Replies
4
Views
421
Replies
4
Views
297
Replies
7
Views
281

1,219,819
Messages
6,150,399
Members
450,959
Latest member
Rbro

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