I´m using single cell formula to get the summary table. I´m making some mistake & not getting the desired output. Can the experts in this forum help please?
Problems (compare the desired output table & output from single cell formula) :
1. I want to get the ids for each person split between modules. Now I´m getting the combined ids for each person in the output table.
2. I want to get the count of ids for each output row. I tried few options but failed.
3. Module & person distribution is not happening correctly. It should be as shown in the desired output table.
Output table (Single cell formula):
Source table:
Desired output:
Problems (compare the desired output table & output from single cell formula) :
1. I want to get the ids for each person split between modules. Now I´m getting the combined ids for each person in the output table.
2. I want to get the count of ids for each output row. I tried few options but failed.
3. Module & person distribution is not happening correctly. It should be as shown in the desired output table.
Output table (Single cell formula):
excel problems.xlsx | ||||||
---|---|---|---|---|---|---|
M | N | O | P | |||
2 | module | person | count of id | id | ||
3 | co | a | 1, 2, 3, 4, 5, 8 | |||
4 | cl | b | 3, 6, 9, 10 | |||
5 | cl | c | 3, 6 | |||
6 | cl | d | 4, 7 | |||
Sheet3 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
M3:O6 | M3 | =LET( id,B3:B17, p,D3:D17, m,C3:C17, uP,UNIQUE(FILTER(p,p<>"")), mName,XLOOKUP(uP,p,m), pId, MAP(uP,LAMBDA(x,TEXTJOIN(", ",,UNIQUE(FILTER(id,p=x))))), HSTACK(mName,uP,pId)) |
Dynamic array formulas. |
Source table:
excel problems.xlsx | |||||
---|---|---|---|---|---|
B | C | D | |||
2 | id | module | person | ||
3 | 1 | co | a | ||
4 | 2 | co | a | ||
5 | 3 | cl | b | ||
6 | 3 | cl | c | ||
7 | 3 | cl | a | ||
8 | 4 | cl | a | ||
9 | 4 | cl | d | ||
10 | 5 | co | a | ||
11 | 6 | co | b | ||
12 | 6 | co | c | ||
13 | 6 | co | c | ||
14 | 7 | cl | d | ||
15 | 8 | cl | a | ||
16 | 9 | cl | b | ||
17 | 10 | co | b | ||
Sheet3 |
Desired output:
excel problems.xlsx | |||||||
---|---|---|---|---|---|---|---|
F | G | H | I | J | |||
2 | module | person | count of id | id | Remarks | ||
3 | cl | a | 3 | 3, 4, 8 | |||
4 | co | a | 3 | 1, 2, 5 | |||
5 | cl | b | 2 | 3, 9 | |||
6 | co | b | 2 | 6, 10 | |||
7 | cl | c | 1 | 3 | |||
8 | co | c | 1 | 6 | duplicate removed | ||
9 | cl | c | 2 | 4, 7 | |||
Sheet3 |