Can VLookup return more than one look up value

Z941714

Board Regular
Joined
Jan 15, 2008
Messages
64
Good Day All,

The question is there a way that Vlookup can return more than one lookup value from the array table. The lookup value has a number of matching values in the array table.

As always thanks in advance

Z941714
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
You're going to need to use an array formula with INDEX/MATCH in order to retrieve subsequent matches of the same value. For example:


Book1
ABCDE
1LookupValuesIDText
21001A1001A
3D1002B
4G1003C
51001D
61004E
71005F
81001G
91002H
101004I
Sheet1
Cell Formulas
RangeFormula
B2{=IFERROR(INDEX($E$1:$E$10,SMALL(IF($D$1:$D$10=$A$2,ROW($D$1:$D$10)),ROWS($B$2:$B2))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.


Copy formula in B2 down.

WBD
 
Upvote 0
You're going to need to use an array formula with INDEX/MATCH in order to retrieve subsequent matches of the same value. For example:

ABCDE
1LookupValuesIDText
21001A1001A
3D1002B
4G1003C
51001D
61004E
71005F
81001G
91002H
101004I

<colgroup><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Array Formulas
CellFormula
B2{=IFERROR(INDEX($E$1:$E$10,SMALL(IF($D$1:$D$10=$A$2,ROW($D$1:$D$10)),ROWS($B$2:$B2))),"")}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>



Copy formula in B2 down.

WBD



Thanks boy was that quick

Z941714
 
Upvote 0

Forum statistics

Threads
1,215,003
Messages
6,122,655
Members
449,091
Latest member
peppernaut

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