Xlambda
Well-known Member
- Joined
- Mar 8, 2021
- Messages
- 837
- Office Version
- 365
- Platform
- Windows
AFLATTEN extracts any array in a column array (vertical), does keep the blanks
Excel Formula:
=LAMBDA(a,
LET(r,ROWS(a),
c,COLUMNS(a),s,SEQUENCE(r*c),
q,QUOTIENT(s-1,c)+1,
m,MOD(s-1,c)+1,
INDEX(IF(a="","",a),q,m)
)
)
LAMBDA 5.0.xlsx | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | d | d | 4 | |||
2 | 1 | g | h | |||
3 | d | h | ||||
4 | a | 3 | ||||
5 | d | 4 | 4 | |||
6 | 3 | 3 | ||||
7 | c | 2 | 2 | |||
8 | ||||||
9 | d | |||||
10 | d | |||||
11 | 4 | |||||
12 | 1 | |||||
13 | g | |||||
14 | h | |||||
15 | ||||||
16 | d | |||||
17 | h | |||||
18 | a | |||||
19 | 3 | |||||
20 | ||||||
21 | d | |||||
22 | 4 | |||||
23 | 4 | |||||
24 | 3 | |||||
25 | ||||||
26 | 3 | |||||
27 | c | |||||
28 | 2 | |||||
29 | 2 | |||||
30 | ||||||
AFLATTEN post |
Cell Formulas | ||
---|---|---|
Range | Formula | |
A9:A29 | A9 | =AFLATTEN(A1:C7) |
Dynamic array formulas. |
Upvote
0