Forum Discussion
DAM_ELK
Nov 13, 2023Copper Contributor
Extracting part of a text string
I'm trying to extract a discrete part of a text string -- a number before a certain delimiter, in this case, "%". The string is all text except the number(s) that precede the percentage sign. I want...
Patrick2788
Nov 13, 2023Silver Contributor
A 365 solution that be can be used on a vector:
=LET(
KeepNumbers, LAMBDA(string,
LET(
explode, TOCOL(MID(string, SEQUENCE(LEN(string)), 1) * 1, 2),
IFERROR(CONCAT(explode) * 1, "")
)
),
BYROW(array, KeepNumbers)
)