Multiple Criteria Lookup

scottlarock

Board Regular
Joined
Apr 10, 2009
Messages
102
Hello,

I have been trying to ask my question right, I hope it is somewhat clear this time.
I am trying to return the matching price in column L as found in column D according to H, I, J, which should match A, B, C.
The exercise consists in comparing the prices found in column D with those in column K.

Could anyone tell me what the formula would be in column L ?

I know, this sounds very easy, but I just don't have the excel logic to work this out.... All I can do is a simple 1 criteria vlookup but that doesn't suffice on the real db.

Thank you all so much for the time and support !

A</SPAN> B</SPAN> C</SPAN> D</SPAN>E</SPAN>F</SPAN>G</SPAN> H</SPAN> I</SPAN> J</SPAN> K</SPAN> L</SPAN> M</SPAN>
1</SPAN>Major</SPAN>Item code</SPAN>Description</SPAN>Price</SPAN>Major</SPAN>Item code</SPAN> Description</SPAN>Price</SPAN>Compared price</SPAN>
2</SPAN>Music</SPAN>Mic Pump 1</SPAN>Mic Pump 1</SPAN>100.00</SPAN>Music</SPAN>Mic1</SPAN>Mic Pump 1</SPAN>102.00</SPAN>
3</SPAN>Music</SPAN>Mic Pump 2</SPAN>Mic Pump 2</SPAN>120.00</SPAN>Music</SPAN>Mic 2</SPAN>Mic Pump 2</SPAN>122.00</SPAN>
4</SPAN>Music</SPAN>Mic Pump 3</SPAN>Mic Pump 3</SPAN>130.00</SPAN>Music</SPAN>Mic 3</SPAN>Mic Pump 3</SPAN>132.00</SPAN>
5</SPAN>Music</SPAN>Mic Pump 4</SPAN>Mic Pump 4</SPAN>150.00</SPAN>Music</SPAN>Mic 4</SPAN>Mic Pump 4</SPAN>152.00</SPAN>
6</SPAN>Music</SPAN>Mic Pump 5</SPAN>Mic Pump 5</SPAN>170.00</SPAN>Music</SPAN>Mic 5</SPAN>Mic Pump 5</SPAN>172.00</SPAN>
7</SPAN>Music</SPAN>Mic Pump 6</SPAN>Mic Pump 6</SPAN>190.00</SPAN>Music</SPAN>Mic 6</SPAN>Mic Pump 6</SPAN>192.00</SPAN>
8</SPAN>Music</SPAN>Mic Pump 7</SPAN>Mic Pump 7</SPAN>200.00</SPAN>Music</SPAN>Mic 7</SPAN>Mic Pump 7</SPAN>202.00</SPAN>
9</SPAN>Music</SPAN>Mic Pump 8</SPAN>Mic Pump 8</SPAN>220.00</SPAN>Music</SPAN>Mic 8</SPAN>Mic Pump 8</SPAN>222.00</SPAN>
10</SPAN>Music</SPAN>Mic Pump 9</SPAN>Mic Pump 9</SPAN>240.00</SPAN>Music</SPAN>Mic 9</SPAN>Mic Pump 9</SPAN>242.00</SPAN>
11</SPAN>Music</SPAN>Mic Pump 10</SPAN>Mic Pump 10</SPAN>260.00</SPAN>Music</SPAN>Mic 10</SPAN>Mic Pump 10</SPAN>262.00</SPAN>
12</SPAN>Music</SPAN>Mic Pump 11</SPAN>Mic Pump 11</SPAN>280.00</SPAN>Music</SPAN>Mic 11</SPAN>Mic Pump 11</SPAN>282.00</SPAN>
13</SPAN>Music</SPAN>Mic Pump 12</SPAN>Mic Pump 12</SPAN>300.00</SPAN>Music</SPAN>Mic 12</SPAN>Mic Pump 12</SPAN>302.00</SPAN>
14</SPAN>Music</SPAN>Mic Pump 13</SPAN>Mic Pump 13</SPAN>320.00</SPAN>Music</SPAN>Mic 13</SPAN>Mic Pump 13</SPAN>322.00</SPAN>
15</SPAN>Cinema</SPAN>Vid Pump 1</SPAN>Mic Pump 14</SPAN>340.00</SPAN>Cinema</SPAN>Mic 14</SPAN>Vid Pump 6</SPAN>342.00</SPAN>
16</SPAN>Cinema</SPAN>Vid Pump 2</SPAN>Mic Pump 15</SPAN>360.00</SPAN>Cinema</SPAN>Mic 15</SPAN>Vid Pump 7</SPAN>362.00</SPAN>
17</SPAN>Cinema</SPAN>Vid Pump 3</SPAN>Mic Pump 16</SPAN>380.00</SPAN>Cinema</SPAN>Mic 16</SPAN>Vid Pump 8</SPAN>382.00</SPAN>
18</SPAN>Cinema</SPAN>Vid Pump 4</SPAN>Mic Pump 17</SPAN>400.00</SPAN>Cinema</SPAN>Mic 17</SPAN>Vid Pump 9</SPAN>402.00</SPAN>
19</SPAN>Cinema</SPAN>Vid Pump 5</SPAN>Mic Pump 18</SPAN>420.00</SPAN>Cinema</SPAN>Mic 18</SPAN>Vid Pump 10</SPAN>422.00</SPAN>
20</SPAN>Cinema</SPAN>Vid Pump 6</SPAN>Mic Pump 19</SPAN>440.00</SPAN>Cinema</SPAN>Mic 19</SPAN>Vid Pump 11</SPAN>442.00</SPAN>
21</SPAN>Cinema</SPAN>Vid Pump 7</SPAN>Mic Pump 20</SPAN>460.00</SPAN>Cinema</SPAN>Mic 20</SPAN>Vid Pump 12</SPAN>462.00</SPAN>
22</SPAN>Cinema</SPAN>Vid Pump 8</SPAN>Mic Pump 21</SPAN>480.00</SPAN>Cinema</SPAN>Mic 21</SPAN>Vid Pump 1</SPAN>482.00</SPAN>
23</SPAN>Cinema</SPAN>Vid Pump 9</SPAN>Mic Pump 22</SPAN>500.00</SPAN>Cinema</SPAN>Mic 22</SPAN>Vid Pump 2</SPAN>502.00</SPAN>
24</SPAN>Cinema</SPAN>Vid Pump 10</SPAN>Mic Pump 23</SPAN>520.00</SPAN>Cinema</SPAN>Mic 23</SPAN>Vid Pump 3</SPAN>522.00</SPAN>
25</SPAN>Cinema</SPAN>Vid Pump 11</SPAN>Mic Pump 24</SPAN>540.00</SPAN>
26</SPAN>Cinema</SPAN>Vid Pump 12</SPAN>Mic Pump 25</SPAN>560.00</SPAN>
27</SPAN>

<TBODY>
</TBODY><COLGROUP><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL></COLGROUP>
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
In L2 copied down:

=INDEX(D$2:D$26,MATCH(1,INDEX(((A$2:A$26=H2)*(B$2:B$26=I2)*(C$2:C$26=J2)),),FALSE))

Note that the Item Code's in column I must match those in column B. They don't in your sample data.
 
Upvote 0
Hi Scott

You could do it a few ways - I would use a Sumproduct formula - in Cell L2 paste the following and drag

=SUMPRODUCT(--($B$2:$B$24=H2),--($C$2:$C$24=I2),--($D$2:$D$24=J2),--($E$2:$E$24))

Its basically looking at column B and when thats equal to H2 , AND Column C when thats equal to I2 AND column D when thats equal to J2 , returning that is in Column E ,

Note that the sample above will return no matches as none of the item codes match in Column b match Column I- they have to be exactly the same as each other.

And I only took sample data for you so if range was greater change all the row 24 to whatever is relevant

A

This will only work if lookup range has unique items
 
Upvote 0
Andrew, that works like a charm ! So glad I finally got an answer... after 3 attempts... It's actually not that easy posting a thread ;°)
Take care and have a great day !

In L2 copied down:

=INDEX(D$2:D$26,MATCH(1,INDEX(((A$2:A$26=H2)*(B$2:B$26=I2)*(C$2:C$26=J2)),),FALSE))

Note that the Item Code's in column I must match those in column B. They don't in your sample data.
 
Upvote 0
Hello "A",

Thanks a ton for that awesome formula, it works perfectly... I'm really thankful you guys are able to answer these sorts of questions !
Take care and have a great day.
Scott

Hi Scott

You could do it a few ways - I would use a Sumproduct formula - in Cell L2 paste the following and drag

=SUMPRODUCT(--($B$2:$B$24=H2),--($C$2:$C$24=I2),--($D$2:$D$24=J2),--($E$2:$E$24))

Its basically looking at column B and when thats equal to H2 , AND Column C when thats equal to I2 AND column D when thats equal to J2 , returning that is in Column E ,

Note that the sample above will return no matches as none of the item codes match in Column b match Column I- they have to be exactly the same as each other.

And I only took sample data for you so if range was greater change all the row 24 to whatever is relevant

A

This will only work if lookup range has unique items
 
Upvote 0
By the way, I'm extra glad you were able to sort this out for me because I was trying to get those 2 formulas (your index match, and sumproduct as posted by blossomthe2nd). I was looking at the excel blog "using multiple criteria in excel lookup" written by JP Pinto on this site and he was explaining these exact formulas along with another lookup... But I swear even when you have concrete examples... those always differ slightly from case to case & I just couldn't seem to get it done.
So extra special thanks to you guys !

In L2 copied down:

=INDEX(D$2:D$26,MATCH(1,INDEX(((A$2:A$26=H2)*(B$2:B$26=I2)*(C$2:C$26=J2)),),FALSE))

Note that the Item Code's in column I must match those in column B. They don't in your sample data.
 
Upvote 0

Forum statistics

Threads
1,215,482
Messages
6,125,061
Members
449,206
Latest member
Healthydogs

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