Forum Discussion
Zdenek_Moravec
Oct 27, 2024Brass Contributor
How to extract multiple occurrences of a text enclosed between two same characters
Dear colleagues, I have a cell with plenty of text. Some part of the text is enclosed between tags >> and <<. The task is to extract all these strings to one cell, separated by new line. Notes ...
- Oct 28, 2024
I hope this works for you (with the text in A5):
=LET(w, TEXTSPLIT(A5, "!"), n, COUNTA(w), s, SEQUENCE(, n), f, FILTER(w, ISEVEN(s)), TEXTJOIN(CHAR(10), TRUE, f))
Zdenek_Moravec
Oct 28, 2024Brass Contributor
PeterBartholomew1 , nice approach, I like it. I hope, Microsoft team will also improve debug possibilities for LAMBDA formula and the Name Manager dialog window. Currently, it is a kind of black box.
SergeiBaklan
Oct 28, 2024Diamond Contributor
AFE from Excel Labs gives both - debugger and ability to work with names. Not IDE, but at least something.
- Zdenek_MoravecOct 28, 2024Brass Contributor
I see now, the Advanced Formula Environment mentioned by PeterBartholomew1 is suitable for LAMBDA debugging. I will have a look, thank You both.