Trying to do index-match but I have multiple teams for one name... how can I return all those teams for that name?

doge_3

Board Regular
Joined
Apr 11, 2014
Messages
72
I've got names in one column, and teams in another.

I'm mapping names to teams, but some ppl are on multiple teams.

For example, John is part of both the Project Management team and Systems Engineering team.

How can I write my formula so that for John, my result shows all the teams he belongs to? Note: some people belong to as many as 9 teams...

Not sure how I can do this..

Please let me know
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
I've got names in one column, and teams in another.

I'm mapping names to teams, but some ppl are on multiple teams.

For example, John is part of both the Project Management team and Systems Engineering team.

How can I write my formula so that for John, my result shows all the teams he belongs to? Note: some people belong to as many as 9 teams...

Not sure how I can do this..

Please let me know

A2:A100 houses the names, B2:B100 the teams the names are associated with.

D1: John

D2: Team List

D3, control+shift+enter, not just enter, and copy down:
Rich (BB code):
=IFERROR(INDEX($B$2:$B$100,SMALL(IF($A$2:$A$100=$D$1,
  ROW($B$2:$B$100)-ROW($B$2)+1),ROWS($D$3:D3))),"")
 
Upvote 0
Thanks.

Is there any way to get it in just one cell?

BTW I have two workbooks and I'm trying to link up names to teams from one to another.

In my other worksheet I have just names, and I need to put their associated teams in there but into one cell. How to do that?

Pls let me know!

For example, WB 2 has from A1:A100 just names with B1:B100 just teams.

I want to show All teams in one cell only in B.

Also here's the format in the original (A,B)

(John, Engineering)
(John, Project Management)
(John, General)
 
Last edited:
Upvote 0
Thanks.

Is there any way to get it in just one cell?

BTW I have two workbooks and I'm trying to link up names to teams from one to another.

In my other worksheet I have just names, and I need to put their associated teams in there but into one cell. How to do that?

Pls let me know!

For example, WB 2 has from A1:A100 just names with B1:B100 just teams.

I want to show All teams in one cell only in B.

Also here's the format in the original (A,B)

(John, Engineering)
(John, Project Management)
(John, General)

What is the point of posting a different story the first time around?

That asked, try to adapt from the link below:
http://www.mrexcel.com/forum/excel-questions/805851-lookup-value-combine-texts.html#post3940201
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,728
Members
448,987
Latest member
marion_davis

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