Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Extracting 2nd occurrence of a number in brackets / Google Sheet/Excel

$
0
0

I currently have cell that has the following output from my Google Sheet:

Share Price vs. Fair ValueBelow Fair Value: AAPL ($126.85) is trading above our estimate of fairvalue ($118.02)Significantly Below Fair Value: AAPL is trading above ourestimate of fair value.

From this cell, I want to extract the second number only, so 118.02 (ideally without the $ and the "S"). Currently my formula looks like this:

=iferror(REGEXEXTRACT(DV2;"\((.*)\)([A-Z,a-z,$])"))

As an output I'm getting

$118.02 and in the cell next to it the letter "S".

Not sure why the regex is adding the "S" along with the number : ) Any way to get rid of it in the REGEXEXTRACT formula?

I tried using this https://regex101.com/ but I still seem to be dumbfounded.


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>