lrobbo314
Well-known Member
- Joined
- Jul 14, 2008
- Messages
- 3,926
- Office Version
- 365
- Platform
- Windows
In a previous thread @Peter_SSs used a technique using Index with arrays to combine multiple columns to 1 single column array.
I wanted to know if it was possible to do something similar, but instead combine the 6 column table below to a 2 column table.
Excel Formula:
=IF(F3=F2,"",LET(a,FILTER(B$3:E$22,F$3:F$22=F3),r,ROWS(a),seq,SEQUENCE(r*COLUMNS(a),,0),arr,INDEX(a,MOD(seq,r)+1,seq/r+1),TEXTJOIN(", ",1,UNIQUE(FILTER(arr,arr<>0)))))
I wanted to know if it was possible to do something similar, but instead combine the 6 column table below to a 2 column table.
Book1 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | 5 | 10 | 6 | 12 | 7 | 12 | 5 | 10 | |||
2 | 4 | 8 | 7 | 13 | 8 | 13 | 4 | 8 | |||
3 | 3 | 5 | 4 | 8 | 4 | 8 | 3 | 5 | |||
4 | 5 | 12 | 4 | 15 | 3 | 9 | 5 | 12 | |||
5 | 4 | 15 | 2 | 8 | 5 | 17 | 4 | 15 | |||
6 | 6 | 12 | |||||||||
7 | 7 | 13 | |||||||||
8 | 4 | 8 | |||||||||
9 | 4 | 15 | |||||||||
10 | 2 | 8 | |||||||||
11 | 7 | 12 | |||||||||
12 | 8 | 13 | |||||||||
13 | 4 | 8 | |||||||||
14 | 3 | 9 | |||||||||
15 | 5 | 17 | |||||||||
Sheet3 |