andyfleisher
New Member
- Joined
- May 25, 2011
- Messages
- 9
- Office Version
- 365
- Platform
- Windows
- MacOS
I have some team data in the form below.
Is there a way, with a single formula to convert it to a more columnar format like below?
I was initially using TRANSPOSE and UNIQUE to get the top row of team names
In cell D1: =TRANSPOSE(UNIQUE(B2:B21))
And then a FILTER function to get the names for Team 1.
In cell D2: =FILTER($A$2:$A$21,$B$2:$B$21=D1)
I then copied over the FILTER function in each column to look at each team name. Is there a way to do it all in a single function? I thought of using MAP, but that and FILTER don't seem to get along. Since each list of names per team can be a different length, I don't think I can use MAKEARRAY.
I have a current working solution but was just hoping to get better in my excel knowledge,
Thanks a lot!
A | B | |
1 | Name | Team |
2 | Name 1 | Team 1 |
3 | Name 2 | Team 1 |
4 | Name 3 | Team 1 |
5 | Name 4 | Team 1 |
6 | Name 5 | Team 2 |
7 | Name 6 | Team 2 |
8 | Name 7 | Team 2 |
9 | Name 8 | Team 2 |
10 | Name 9 | Team 2 |
11 | Name 10 | Team 2 |
12 | Name 11 | Team 3 |
13 | Name 12 | Team 3 |
14 | Name 13 | Team 3 |
15 | Name 14 | Team 3 |
16 | Name 15 | Team 4 |
17 | Name 16 | Team 4 |
18 | Name 17 | Team 4 |
19 | Name 18 | Team 4 |
20 | Name 19 | Team 4 |
21 | Name 20 | Team 4 |
Is there a way, with a single formula to convert it to a more columnar format like below?
D | E | F | G | |
1 | Team 1 | Team 2 | Team 3 | Team 4 |
2 | Name 1 | Name 5 | Name 11 | Name 15 |
3 | Name 2 | Name 6 | Name 12 | Name 16 |
4 | Name 3 | Name 7 | Name 13 | Name 17 |
5 | Name 4 | Name 8 | Name 14 | Name 18 |
6 | Name 9 | Name 19 | ||
7 | Name 10 | Name 20 |
I was initially using TRANSPOSE and UNIQUE to get the top row of team names
In cell D1: =TRANSPOSE(UNIQUE(B2:B21))
And then a FILTER function to get the names for Team 1.
In cell D2: =FILTER($A$2:$A$21,$B$2:$B$21=D1)
I then copied over the FILTER function in each column to look at each team name. Is there a way to do it all in a single function? I thought of using MAP, but that and FILTER don't seem to get along. Since each list of names per team can be a different length, I don't think I can use MAKEARRAY.
I have a current working solution but was just hoping to get better in my excel knowledge,
Thanks a lot!