This has already been addressed in Excel but I was wondering how to do the same in Google Sheets.
So suppose the B cell has this formula:
="frontend (days)
total: "&sum(B2,B10,B14,B20)
and the C cell has a similar formula. I would like the D cell to add the numbers in those two cells.
Ideas?
Best Answer
try this:
REGEXEXTRACT
part of formula "\d+.?\d+$" does this:\d
- match and retun digit from 0 to 9\d+
- gives one or more digits.
- any symbol\.
- dot?
- makes previous symbol optional (we use it here to match integers)$
- matches end of string|
- ORUpdate 2016/09
In some cases you may need to use different regular expressions and formulas. For example, if we have the text
total = $1,734.00
and want to get 1734, we need this formula:this formula does the following: