Xlambda
Well-known Member
- Joined
- Mar 8, 2021
- Messages
- 860
- Office Version
- 365
- Platform
- Windows
T_CHARS tool lambda to select chars useful in recursive text manipulation formulas
Excel Formula:
=LAMBDA(d,l,e,
LET(c,AND(OR(d={0,1}),OR(l={-1,0,1,2})),
u,CONCAT(SEQUENCE(10)-1),v,CONCAT(CHAR(SEQUENCE(26,,97))),w,UPPER(v),
x,IF(d,u,""),y,SWITCH(l,-1,v,0,"",1,w,2,v&w,""),z,IF(e=0,"",e),
IF(c,x&y&z,"check data")
)
)
LAMBDA 7.0.xlsx | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | d-digits | 0 | 1 | ||||||||
2 | no digits | all digits | |||||||||
3 | l-letters | 0 | -1 | 1 | 2 | ||||||
4 | no letters | small letters | capital letters | all letters | |||||||
5 | e-extra chars | ||||||||||
6 | |||||||||||
7 | =T_CHARS(1,,) | ||||||||||
8 | 0123456789 | ||||||||||
9 | =T_CHARS(,-1,123) | ||||||||||
10 | abcdefghijklmnopqrstuvwxyz123 | ||||||||||
11 | =T_CHARS(1,1,"bcdf") | ||||||||||
12 | 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZbcdf | ||||||||||
13 | =T_CHARS(1,,""""&"!·$%&/()=?") | ||||||||||
14 | 0123456789"!·$%&/()=? | ||||||||||
15 | =T_CHARS(,-1,"ZIP-") | ||||||||||
16 | abcdefghijklmnopqrstuvwxyzZIP- | ||||||||||
17 | =T_CHARS(,2,""""&"!·$%&/()=?¿<>\@€:;,.-_") | ||||||||||
18 | abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"!·$%&/()=?¿<>\@€:;,.-_ | ||||||||||
19 | =T_CHARS(1,2,) | ||||||||||
20 | 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | ||||||||||
21 | |||||||||||
T_CHARS post |
Cell Formulas | ||
---|---|---|
Range | Formula | |
A7,A19,A17,A15,A13,A11,A9 | A7 | =FORMULATEXT(A8) |
A8 | A8 | =T_CHARS(1,,) |
A10 | A10 | =T_CHARS(,-1,123) |
A12 | A12 | =T_CHARS(1,1,"bcdf") |
A14 | A14 | =T_CHARS(1,,""""&"!·$%&/()=?") |
A16 | A16 | =T_CHARS(,-1,"ZIP-") |
A18 | A18 | =T_CHARS(,2,""""&"!·$%&/()=?¿<>\@€:;,.-_") |
A20 | A20 | =T_CHARS(1,2,) |
Upvote
0