Multiple results from lookup

matbrown217

New Member
Joined
Apr 29, 2011
Messages
2
Hi,

I would like to return multiple values from a vlookup is this possible?

I am using excel 2007.


Many Thanks

Mat
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Hi Mat,

Welcome to MrExcel.

Is this the type of Lookup you want to do?


Excel Workbook
ABCD
1CustomerIDData1Data2Data3
2AB123CatPlane100
3Ab124Dogbus125
4AB123Fishcar150
5AB125Pandaboat100
6AB123Cowbike250
7Ab125Bulltrike125
8ab123RabbitTut Tut100
9AB124birdVan250
Table



Excel Workbook
ABCDE
1*CustomerIDData1Data2Data3
24AB123CatPlane100
3**Fishcar150
4**Cowbike250
5**RabbitTut Tut100
Lookup


You could also use a Pivot Table....


Excel Workbook
FGHIJ
12*****
13*CustomerIDAB123**
14*****
15****
16*Data1Data2Total*
17*CatPlane100*
18*Cowbike250*
19*Fishcar150*
20*RabbitTut Tut100*
21*****
Lookup



See if this file helps you out.....

http://www.4shared.com/document/6KqPBIDE/Lookup_Multiple_Returns.html

Good luck.

Ak
 
Upvote 0
Yes Select the number of cells you want results in, in my case 3, enter this formula and confirm it by pressing Ctrl+Enter
Code:
=VLOOKUP(A1,A1:D13,{2,3,4},0)
The above formula looks for the value of A1 in the range of A1 to D13 and returns the results from B1, C1 & D1 in the range of 3 cells you selected. Change ranges etc to suit.
 
Upvote 0
Hi,

I have the following scenario starting in A1

Sheet 1
A B
1 Part All Shortages
2 wheel
3 engine
4 gearbox
5 lights

Sheet 2
A B
1 Part Shortage
2 wheel tyre
3 wheel alloy
4 wheel dustcap
5 engine sparkplug
6 engine valve
7 gearbox sprocket
8 gearbox clutch plate
9 lights Bulb
10 lights glass

I would like to be able to lookup the part and return all of the shortages associated with the part into sheet 1 into the relevant cell.

Many Thanks
 
Upvote 0
Hi, Try

On Sheet1 B2, copy across & down.

=IFERROR(INDEX(Sheet2!$B:$B,SMALL(IF(Sheet2!$A$2:$A$100=$A2,ROW(Sheet2!$B$2:$B$100)),COLUMNS($B2:B2))),"")

Confirmed with Contrl+Shift+Enter, not just Enter.
 
Upvote 0
Hi Mat,

This may not be the best solution, but it's all I can think of based on the information you have provided and my limited skills....

Excel Workbook
ABCDEF
1CountPart All ShortagesPart1Part2Part3Part4
23wheeltyrealloydustcap*
32enginesparkplugvalve**
42gearboxsprocketclutch plate**
52lightsBulbglass**
6******
Sheet1



Excel Workbook
ABC
1Part ShortageExtract1Extract2
2wheel tyrewheeltyre
3wheel alloywheelalloy
4wheel dustcapwheeldustcap
5engine sparkplugenginesparkplug
6engine valveenginevalve
7gearbox sprocketgearboxsprocket
8gearbox clutch plategearboxclutch plate
9lights BulblightsBulb
10lights glasslightsglass
Sheet2




I hope that works or gives someone a better idea/solution for you.

Ak
 
Upvote 0
Hi,

I have the following scenario starting in A1

Sheet 1
A B
1 Part All Shortages
2 wheel
3 engine
4 gearbox
5 lights

Sheet 2
A B
1 Part Shortage
2 wheel tyre
3 wheel alloy
4 wheel dustcap
5 engine sparkplug
6 engine valve
7 gearbox sprocket
8 gearbox clutch plate
9 lights Bulb
10 lights glass

I would like to be able to lookup the part and return all of the shortages associated with the part into sheet 1 into the relevant cell.

Many Thanks
Will the data on Sheet2 be sorted or grouped together as is shown in your sample data?
 
Upvote 0

Forum statistics

Threads
1,224,598
Messages
6,179,820
Members
452,946
Latest member
JoseDavid

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