The most versatile way is to use VBa.
Try this UDF
Use in worksheet![]()
Function SumCell(rng As Range) Dim strtmp As String Dim n As Long For n = 1 To Len(rng) If Asc(Mid(rng, n, 1)) >= 48 And Asc(Mid(rng, n, 1)) <= 57 Then strtmp = strtmp & Mid(rng, n, 1) Else strtmp = strtmp & " " End If Next strtmp = WorksheetFunction.Trim(strtmp) SumCell = Evaluate(Replace(strtmp, " ", "+")) End Function
Formula:
=SumCell(A3)
Bookmarks