GeertD
Board Regular
- Joined
- Dec 22, 2020
- Messages
- 60
- Office Version
- 365
- Platform
- Windows
GETONDELIMITER: Get the nth element after splitting a text string on a delimiter. This is the LAMBDA-fied formula from EMT 1736 on the excelisfun YouTube channel.
Excel Formula:
=LAMBDA(TextString,Delimiter,nr,
INDEX(FILTERXML("<a><b>"&SUBSTITUTE(TextString,Delimiter,"</b><b>")&"</b></a>","//b"),nr)
)
DXLR's LAMBDA.LET Library_v00.07.xlsb | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | The quick brown fox jumps over the lazy dog. | The | quick | |||||
2 | quick | |||||||
3 | brown | |||||||
4 | fox | |||||||
5 | jumps | |||||||
6 | over | |||||||
7 | the | |||||||
8 | lazy | |||||||
9 | dog. | |||||||
10 | ||||||||
Sandbox_Mr.Excel_2 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C1:C9 | C1 | =SplitOnDelimiter(A1," ") |
E1 | E1 | =GetOnDelimiter(A1," ",2) |
Dynamic array formulas. |
Upvote
0