How can I get the numeric value from the cell: " $4.57 dividend"
If there is going to be considerable variability in the precise contents of the
cell, you might be better off with a User Defined Function (UDF) written in
visual basic.
To enter it:
<alt-F11> opens the VB Editor.
Ensure your project is highlighted in the project explorer window, then
Insert/Module and paste the code below into the window that opens.
To use this UDF, in some cell enter the formula:
=GetVal(A1)
where A1 contains your string.
========================
Function GetVal(str) As Double
Dim i As Long
Dim temp As Variant
For i = 1 To Len(str)
temp = Val(Mid(str, i, 255))
If temp <> 0 Then
GetVal = temp
Exit Function
End If
Next i
End Function
======================
--ron