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

Ferlucia

New Member
Joined
Jul 3, 2014
Messages
43
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:
=IF(L31<=50;INDEX(Blad2!$C$5:$C$14;MATCH(F31&J31;Blad2!$A$5:$A$14&Blad2!$B$5:$B$14;0));INDEX(Blad2!$D$5:$D$14;MATCH(F31&J31;Blad2!$A$5:$A$14&Blad2!B$5:B$14;0)))

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 :)
 
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:

=INDEX(Blad2!$C$5:$D$14; MATCH($F31;IF(Blad2!$B$5:$B$14=$J31;Blad2!$B$5:$B$14);0); IF($L31>50;2;1))

</PRE>

What is the error that occurred?

By the way, the formula should have been:

=INDEX(Blad2!$C$5:$D$14; MATCH($F31;IF(Blad2!$B$5:$B$14=$J31;Blad2!$A$5:$A$14);0); IF($L31>50;2;1))
 
Last edited:
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Upvote 0
I copied it from your sheet, pressed crtl+shift+enter but I still got an #N/B error.
I realy don't know what I'm doing wrong, but when I press evaluate it underlines this:
=INDEX(Blad2!$C$5:$D$14; MATCH($F31;IF(Blad2!$B$5:$B$14=$J31;Blad2!$A$5:$A$14);0); IF($L31>50;2;1))
 
Upvote 0
I copied it from your sheet, pressed crtl+shift+enter but I still got an #N/B error.
I realy don't know what I'm doing wrong, but when I press evaluate it underlines this:
=INDEX(Blad2!$C$5:$D$14; MATCH($F31;IF(Blad2!$B$5:$B$14=$J31;Blad2!$A$5:$A$14);0); IF($L31>50;2;1))

When you open the workbook I posted, do you see any error?
 
Upvote 0
It works.
I don't realy know why but its just like Steve's formula, when I entered it a second time, it suddenly worked.

Thanks to both of you :)
 
Upvote 0
The formula you gave me
=INDEX(Blad2!$C$5:$D$14; MATCH($F31;IF(Blad2!$B$5:$B$14=$J31;Blad2!$A$5:$A$14);0); IF($L31>50;2;1))

When I tried it yesterday, I constantly got errors. But when I tried it again today it suddenly worked for some reason.

 
Upvote 0
The formula you gave me
=INDEX(Blad2!$C$5:$D$14; MATCH($F31;IF(Blad2!$B$5:$B$14=$J31;Blad2!$A$5:$A$14);0); IF($L31>50;2;1))

When I tried it yesterday, I constantly got errors. But when I tried it again today it suddenly worked for some reason.


It's great that it worked as it's supposed to do.
 
Upvote 0

Forum statistics

Threads
1,215,053
Messages
6,122,882
Members
449,097
Latest member
dbomb1414

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