Vlookup to provide multiple results for 1 option

Hutchcove

New Member
Joined
Feb 22, 2015
Messages
9
Hi all, Newbie with Excel and looking to create a dispatch database. I was told Vlookup was the function of choice. See table below:
What I want to do is have a 3 colums to the left of this hidden data with CITY, PRIMARY & 2NDARY as headers. A1 - City & Then B1 & C1 will provide the details from F1 & G1

I'm assuming this is simple but I can't seem to grasp the Vlookup tool. For all I know there is a better tool. All I do know is that using any VB coding is out of scope for me. Hoping this can be done with a couple of formulas.

Any assistance would be greatly appreciated.

E F G
CITY PRIMARY 2NDARY
AlmaProgitechNone
AmosProgitechNone
Ancienne-LoretteEliasMicroage QC
Ancienne-LoretteEliasMicroage QC
Ange-GardienGilbertoJason
AnjouNew HireJason
AnjouNew HireJason
AsbestosEliasProgitech
Ascot-CornerProgitechMicroage QC
Ayers CliffGilbertoProgitech
Ayer's CliffGilbertoProgitech
Ayer's CliffGilbertoProgitech
Baie ComeauProgitechNone
Baie ComeauProgitechNone
Baie ComeauProgitechNone
Baie ComeauProgitechNone

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Try:


Book1
ABCDEFG
1CityPrimary2ndaryCITYPrimary2ndary
2AnjouNew HireJasonAlmaProgitechNone
3AmosProgitechNoneAmosProgitechNone
4Baie ComeauProgitechNoneAncienne-LoretteEliasMicroage QC
5Ancienne-LoretteEliasMicroage QC
6Ange-GardienGilbertoJason
7AnjouNew HireJason
8AnjouNew HireJason
9AsbestosEliasProgitech
10Ascot-CornerProgitechMicroage QC
11Ayers CliffGilbertoProgitech
12Ayer's CliffGilbertoProgitech
13Ayer's CliffGilbertoProgitech
14Baie ComeauProgitechNone
15Baie ComeauProgitechNone
16Baie ComeauProgitechNone
17Baie ComeauProgitechNone
Sheet5
Cell Formulas
RangeFormula
B2=VLOOKUP($A2,$E$1:$G$17,MATCH(B$1,$E$1:$G$1,0))


Enter the formula in B2. Copy to C2. Then copy both of them down the column as far as needed.
 
Upvote 0
Thank you very much. This definitely did the trick. Didn't catch the concept of the Vlookup but not that I follow the formula with the table - makes perfect sense. A BIG THANK YOU


Try:

ABCDEFG
1CityPrimary2ndaryCITYPrimary2ndary
2AnjouNew HireJasonAlmaProgitechNone
3AmosProgitechNoneAmosProgitechNone
4Baie ComeauProgitechNoneAncienne-LoretteEliasMicroage QC
5Ancienne-LoretteEliasMicroage QC
6Ange-GardienGilbertoJason
7AnjouNew HireJason
8AnjouNew HireJason
9AsbestosEliasProgitech
10Ascot-CornerProgitechMicroage QC
11Ayers CliffGilbertoProgitech
12Ayer's CliffGilbertoProgitech
13Ayer's CliffGilbertoProgitech
14Baie ComeauProgitechNone
15Baie ComeauProgitechNone
16Baie ComeauProgitechNone
17Baie ComeauProgitechNone

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet5

Worksheet Formulas
CellFormula
B2=VLOOKUP($A2,$E$1:$G$17,MATCH(B$1,$E$1:$G$1,0))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



Enter the formula in B2. Copy to C2. Then copy both of them down the column as far as needed.[/QUOTE]
 
Upvote 0

Forum statistics

Threads
1,214,984
Messages
6,122,601
Members
449,089
Latest member
Motoracer88

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