Vlookup and multiple criteria

Chaffers

New Member
Joined
Jul 17, 2006
Messages
4
I've a sheet of data with a product line and a rank and I want to do a vlookup which picks up the product line but also the rank so I can derive a top ten list for a particular product. At the moment as I am only looking up the product line, I only ever retrieve the first record. Does anyone have any ideas, ideally without vba?! May thanks, Chaffers
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hello,

Do you mean

=VLOOKUP(A1&A2,table,column,0)

if not use the search facility and enter 'vlookup and multiple' there will be a lot of results, maybe you can find one to suit.
 
Upvote 0
Thanks for this, possibly what I want though get an #n/a .. think I am more after being able to do vlookup(a1&b1,table,column,0) as rank is in a separate col. data looks like:

Product Rank
a 1
a 2
b 1

Sure this doesn't make much sense .. !!

Thanks,
Chaffers
 
Upvote 0
I think I have had a similar problem to you.... and i believe you're halfway there.

Essentially what you want to do is have an index, that you can conduct a VLookup on, that allows both product and rank to be searched together.

If you have Product in column A, and rank in column B, in column C concatenate the two into one cell. For example

In Column C, Row 1, you would write

=A1 & B1

You then do the VLookup as per earlier in this thread, but lookup on that column (which is unique as a combination of product and rank)
 
Upvote 0

Forum statistics

Threads
1,223,920
Messages
6,175,377
Members
452,638
Latest member
Oluwabukunmi

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