VLOOKUP when specified value is repeated more than once

Nick70

Active Member
Joined
Aug 20, 2013
Messages
306
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a range(A2:B10) where in range(A2:A10) we have clients (e.g. Client1, Client2 etc.) and in range(B2:B10) we have products (e.g. Product1, Product2 etc.).

If I do a VLOOKUP on Client2 for example
Excel Formula:
=VLOOKUP("Client2",$A$2:$B$10,2,FALSE)
I will get the product next to Client2.
But what if I have two Client2 for example in one in cell A4 and one in cell A5?
Which formulas can I use so that when I do a VLOOKUP (let's say in cell G2) on Client2 I first get value in cell B4 but then when I do a second VLOOKUP (let's say in cell G3) I get value in cell B5 (so I get all products linked to Client2)?
What is the best way to extract this information?
Is a Pivot the only way to do this?

Thanks,
Nic :unsure:
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Try this:

Book1
ABCDE
1ClientProductClientProducts
2a1a1
3b23
4a36
5c4
6d5
7a6
8b7
9
10
Sheet1
Cell Formulas
RangeFormula
E2:E4E2=FILTER(B2:B10,A2:A10=D2)
Dynamic array formulas.
 
Upvote 0
Solution
Perfect!
That is exactly what I was looking for!
Txs,
Nic :) (y)
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

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