Dec 12 2022 06:10 PM
I'm trying to extract data between characters and many sites reference TEXTBEFORE and TEXTAFTER. when I try to instigate said formulas, the result is #NAME?
I searched through the formulas in Excel 365 and cannot find either formula. My company provides Office 365 subscription and I'm on the most recent release. However, these formulas are not new from the research I've done.
Any recommendations for adding missing formulas?
I'm trying to extract data between brackets in column "A" to Column "E". The issue I have is that 2 pieces of data are between brackets
blah blah blah info [Data to extract] (useless info) [more useless info]
Is there even a way to do this?
Dec 12 2022 09:13 PM
Dec 13 2022 02:49 AM
There was a similar discussion earlier in the year
Even if you are on a semi-annual update cycle, the function should reach you soon.
I defined the Lambda function
TEXTBETWEENλ(text, open, close, instance)
= LET(
partStrings, TEXTAFTER(text, open,instance),
extracted, TEXTBEFORE(partStrings,close),
extracted
)
Note: the AFE inserts the Lambda and the parameters into the definition.
The worksheet function then becomes
= TEXTBETWEENλ(text, "(", ")",-1 )
to return the right-most occurrence.
Dec 13 2022 11:37 AM