How To Return Multiple Match Values in Excel Using Hlookup and INDEX Match

UrbanJungleFashion

New Member
Joined
Oct 14, 2014
Messages
17
Hey everyone. I am trying to figure out how to write an Hlookup up formula that shows multiple results. I want my Hlookup to return multiple value horizontally instead of vertically. Please see below as an example:

Criteria:

123
123
123
654
654
789
789
123
654
789

<colgroup><col width="64" style="width:48pt"> </colgroup><tbody>
</tbody>
Erica
Minda
Tani
Erica
Jay
Craig
Lucy
Mona
Peter
Josh

<colgroup><col width="64" style="width:48pt"> </colgroup><tbody>
<!--EndFragment--></tbody>


<tbody>
</tbody>


Desired result:

In Cell G5 I would input 123 and horizontally the names Erica, Minda, Tani, and Mona would populate.

Please let me know if that made sense.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
maybe something like...

Excel 2016 (Windows) 32 bit
ABCDEFG
1123
2123EricaEricaMindaTaniMona
3123Minda
4123Tani
5654Erica
6654Jay
7789Craig
8789Lucy
9123Mona
10654Peter
11789Josh

<tbody>
</tbody>
Sheet1

Array Formulas
CellFormula
D2{=IFERROR(INDEX($B$2:$B$11,SMALL(IF($A$2:$A$11=$C$1,ROW($A$2:$A$11)-ROW($A$2)+1),COLUMNS($D2:D2))),"")}

<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>
 
Upvote 0
Thank you so very much!!!!

maybe something like...

excel 2016 (windows) 32 bit
abcdefg
1123
2123ericaericamindatanimona
3123minda
4123tani
5654erica
6654jay
7789craig
8789lucy
9123mona
10654peter
11789josh

<tbody>
</tbody>
sheet1

array formulas
cellformula
d2{=iferror(index($b$2:$b$11,small(if($a$2:$a$11=$c$1,row($a$2:$a$11)-row($a$2)+1),columns($d2:d2))),"")}

<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>
 
Upvote 0
Hi, I'm trying to do the exact same thing as above, but getting a #VALUE! error, a value in the formula is of the wrong data type.
I want to match values column N (N1:N222) with values in range A1:L234 and put values from column M into row 1 columns O,P,Q etc. My formula is
Code:
=INDEX(M1:M234,SMALL(IF(A1:L234=N1,ROW(A1:L234)-ROW(A1)+1),COLUMNS(O1:O1)),"")
The only part of the formula I don't understand is
Code:
-ROW(A1)+1)
I would appreciate any help and explanation, thanks.
 
Upvote 0
Hello
I also have a very similar case I would like to return to me all the whole lines where the ID is "Da". and if it's still possible to return it to a new page "OPOMNIK" sheet.


to explain the example:
I would like to make a list of services provided. In column C, I have written the dates of the performed sevisov's work, and I would like to point out that after the last one year I have to make a service. I'm checking this in column A for the answer "Da" or "Ne". but now I only need to print out all the lines that have in the ID column -> "Da"


greetings

skica.png



skica2.png
 
Upvote 0

Forum statistics

Threads
1,215,487
Messages
6,125,073
Members
449,205
Latest member
Healthydogs

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