Looking to see if someone can help with a table for an excel sheet im trying to create. I tried looking around for something similar but couldn’t find anything.
Basically I have 3 column values and want to take those values and group them by a name and then show all the IDs for that person under the Name but have them in a column by name sort of thing.
So for example I have the below set of data that is together in 1 table. The only thing is the amount of people might change 1 week it might be 2 names the next week it might be 5 names so it is never a set number of people is the only thing. Also the amount of PERSON_NUM is never set as well 1 person might have 5 numbers and another might have 1 number.
PERSON_NAME | PERSON_NUM | TYPE2_CODE |
JOHN SMITH | 444444 | 6WW |
JOHN SMITH | S001234 | |
JOHN SMITH | S002345 | P1Z |
JOHN SMITH | S098765 | |
JOHN SMITH | S099887 | $A1 |
ROGER ALLEN | S004444 | |
ROGER ALLEN | S004555 | |
ROGER ALLEN | S023232 | |
ROGER ALLEN | S055555 | AAK |
ROGER ALLEN | S015151 | |
ROGER ALLEN | S022222 | |
ROGER ALLEN | S020020 | |
ROGER ALLEN | 999999 | B1A |
FAKE BANK UNION | 888888 | PP$ |
FAKE BANK UNION | S091919 | MM$ |
FAKE BANK UNION | S092777 | $Z1 |
JOHN ALLEN-SMITH | 123456 | |
And ideally what I would like to do is take each name and group it with the PERSON_NUM and TYPE2_CODE, this could be in a Reporting table as this will be exported to a tab inside an excel file
So with the above information if we could get the below as the result Basically taking the PERSON_NAME and then grouping the PERSON_NUM and TYPE2_CODE based on that name…
I have been wrapping my head around this and cant find a way to get the below any help would be appreciated.
Below is the ideal outcome that I would like to get to any help on how to get this would be amazing if this is possible.
JOHN SMITH | | JOHN ALLEN-SMITH | | ROGER ALLEN | | FAKE BANK UNION | |
PERSON_NUM | TYPE2_CODE | PERSON_NUM | TYPE2_CODE | PERSON_NUM | TYPE2_CODE | PERSON_NUM | TYPE2_CODE |
444444 | 6WW | 123456 | | 999999 | B1A | 888888 | PP$ |
S001234 | | | | S004444 | | S091919 | MM$ |
S002345 | P1Z | | | S004555 | | S092777 | $Z1 |
S098765 | | | | S023232 | | | |
S0998877 | $A1 | | | S055555 | AAK | | |
| | | | | S015151 | | | |
| | | | | S022222 | | | |
| | | | | S020020 | | | |