Vlookup for one to many

skhiani

New Member
Joined
Apr 23, 2012
Messages
19
I am trying to do a vlookup for a one to many relationship but I am having a hard time figuring out the right formula. I have two tables.

Table 1
IDDescription
1Blue
2Green
3Yellow
4Orange
5Aqua
6Red

<tbody>
</tbody>


Table 2
Service CodeDescriptionId
111Orange4
112Orange Mixed4
113Yellow3

<tbody>
</tbody>


I want to be able to pull the service code and description from table two into table one based on ID.

Does anyone have any ideas of how I can do that easily?

Thanks!
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
So in your example for ID code 4 do you want Orange or Orange Mixed returned or all?

If only one how do you decide which one you want?
 
Upvote 0
So what I would like to see is

ID (Table 1)Description (Table 1)Service Code (Table 2)Description (Table 2)
4Orange111Orange
112Orange Mixed
3Yellow113Yellow

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,742
Members
448,989
Latest member
mariah3

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