Return multiple match index lookups into one cell with multiple criteria.

the133448

New Member
Joined
Aug 25, 2018
Messages
2
Hi,

So I have a case where I need to return all results in a column where 2 criteria are met into one cell.

My table looks something like this
Code:
+-----------+------+-------+
|    Job    | Type | Name  |
+-----------+------+-------+
| Tree      | AA   | Bob   |
| Apple     | FF   | John  |
| Banana    | FF   | John  |
| Grape     | CC   | James |
| Mango     | FF   | Paul  |
| Chocolate | AA   | Angus |
+-----------+------+-------+

I currently use a forumla like this:
Code:
 =IFERROR(INDEX(Table1[Job],MATCH(1,(Table1[Name]=B12) * (Table1[Type]="FF"),0)),"")
Where B12 is an lookup name. However if I was to write John, I'd only get Apple. What I want is "Apple, Banana".

How would I go around doing that?
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Solved by using the TEXTJOIN formula introduced in Excel 365.
Code:
=TEXTJOIN(", ",1,REPT(Table1[Job],1*((Table1[Name]=B12)* (Table1[Type]="FF"))))
 
Upvote 0

Forum statistics

Threads
1,226,114
Messages
6,189,052
Members
453,522
Latest member
Seeker2025

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