A family of Microsoft word processing software products for creating web, email, and print documents.
Select the text such as $62.95 $2.90 =, then run this macro:
Sub Compute()
Dim txt As String
Dim arr() As String
Dim i As Long
Dim sum As Double
On Error GoTo ErrHandler
txt = Replace(Selection.Text, "$", "")
arr = Split(txt)
For i = 0 To UBound(arr) - 1
sum = sum + arr(i)
Next i
Selection.InsertAfter Format(sum, " $#,##0.00")
Exit Sub
ErrHandler:
MsgBox "Something went wrong!", vbExclamation
End Sub