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

Extract multiple occurrences of text between given strings in Google sheet

$
0
0

My input text, in a single cell, is the result of user choice selection. It is similar to (so its a string with multiple substrings):

"meal (20$)", "metro (5,5$)"

I would like to extract (to then sum) the prices of each individual choice, to have this sum result in another cell:

20+5,5

I have been searching around with the FIND and SPLIT function but I only succeeded to extract the first price with it. Another solution I see would be to split the text and use an ArrayFormula for the summation, but for now I do not find how to split with multiple characters.

I am using Google sheet, so I cannot use the TEXTSPLIT Excel function, and no macros.

So in a nutshell:

input cellDesired output
"meal (20$)", "metro (5,5$)"25,5

Note the comma, because my local is France.

Thank you for your help!


Viewing all articles
Browse latest Browse all 9782

Trending Articles



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