Forum Discussion
Tse-Wei Chen
Aug 09, 2018Copper Contributor
How to sum the numbers in a text string?
Hi If I have a text string in a cell below: "Path 8.5+Metrocard 10" And I would like to return the result of the sum of the numbers 8.5+10 "18.5" (see attached image) How can I do that by using ...
Patrick2788
Apr 27, 2024Silver Contributor
This request seems likes ages ago! Going back to the original request without path criteria:
=LET(
split, WRAPROWS(TEXTSPLIT(A1, {" ", "+"}), 2),
SUM(TAKE(split, , -1) * 1)
)PeterBartholomew1
Apr 28, 2024Silver Contributor
I hadn't realised just how old the discussion is; answers now would not be of much value to the OP!
On the other hand, past discussions can provide a rich vein of problems that I would never think of. They allow me to evaluate and develop ways of working with modern Excel that bear little resemblance to past practice. Usually the new approaches are far better, but its not always the case.