multiple returns from a table

Hattie

New Member
Joined
Oct 7, 2020
Messages
18
Office Version
  1. 365
Platform
  1. Windows
Excel 365

I have a list of people in a sheet.
The columns are name, team, points.

There are 2 teams.

I want to make 2 new sheets (one team per sheet) with the members of each team and the appropriate points of each member next to them.

I tried vlookup but that only brings back the first match of each team but i want every member of the team. One per line.

Could anyone point me in the right direction?

Thanks
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi & welcome to MrExcel.
Maybe something like
+Fluff v2.xlsm
ABCDEFG
1NameTeamPointsTeam 1NamePoints
2ATeam 233C89
3BTeam 250D82
4CTeam 189F61
5DTeam 182I26
6ETeam 219L69
7FTeam 161O60
8GTeam 293Q32
9HTeam 299R23
10ITeam 126T95
11JTeam 278
12KTeam 230
13LTeam 169
14MTeam 296
15NTeam 250
16OTeam 160
17PTeam 242
18QTeam 132
19RTeam 123
20STeam 269
21TTeam 195
Main
Cell Formulas
RangeFormula
F2:G10F2=FILTER(FILTER(A2:C21,B2:B21=E1),COUNTIF(F1:G1,A1:C1))
Dynamic array formulas.
 
Upvote 0
Solution
Wow, Yes. Perfect

Exactly what I wanted.

I'm not sure how this magic works. Yet :)

But I have been able to amended it so the team is in column A, names in column B.

but I will go and read about these functions and find out.

thank you very much. I owe you a beer :)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
thank you.

I was only excpecting a look at this function.

I worked example made my understanding a lot easier.

take care
 
Upvote 0
i have adopted your code into another project, one at work.

can the filter function only select one source string?

if i make the search [ B2:B21=E1 ] point to a dropdown box in my pivot table it works if i select one item but if i select 2 items the dropdown box obviously shows the text multiply items

and this breaks the code

it doesn't bring back members from both of the teams selected, because they are marked as team 1 or 2 and not as multiply item.

is there a way to make it do the search twice and bring back two sets of data?

or am i barking up the wrong tree here?

thanks
 
Upvote 0
You have already started a new thread for this question, so you need to stick to that thread.
 
Upvote 0

Forum statistics

Threads
1,214,991
Messages
6,122,628
Members
449,095
Latest member
bsb1122

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