Forum Discussion
NateWilcox
Dec 13, 2022Copper Contributor
Missing formulas
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?
- PeterBartholomew1Silver Contributor
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.
- NateWilcoxCopper ContributorThanks! Just updated and the formulas aren't there yet.
Forgive my intermediate Excel knowledge. How do I implement the lambda function in your first string as a formula?
- peiyezhuBronze ContributorThe issue I have is that 2 pieces of data are between brackets
blah blah blah info [Data to extract] (useless info) [more useless info]
re:Is there even a way to do this?
=webservice("http://e.anyoupin.cn/eh3/?preg_match~\[(.+?)\]~blah blah blah info [Data to extract] (useless info) [more useless info]~1")- NateWilcoxCopper ContributorThat looks very phishy...
- Harun24HRBronze ContributorUpdate your Microsoft Office applications.