Ron said:
*
Please post the macro that you are using, as well as the actual an
expected
results, and some one will be able to help you more effectively.
--ron *
Hey Ron,
here is the macro that is being used:
Option Explicit
Function myConversionA(rng As Range) As Long
'returns a whole number???
' As Double
'if you have fractions
Dim res As Variant
Dim LookUpTable As Range
Dim iCtr As Long
Dim myValue As Long
Set rng = rng(1)
Set LookUpTable = Worksheets("sheet2").Range("a:c")
myValue = 0
For iCtr = 1 To Len(rng.Value)
res = Application.VLookup(Mid(rng.Value, iCtr, 1), _
LookUpTable, 3, False)
If IsError(res) Then
'do nothing
Else
If IsNumeric(res) Then
myValue = myValue + res
End If
End If
Next iCtr
myConversionA = myValue
End Function
I have a table of the alphabet and each letter has a specific numerica
value associated to it. Ie:
A=1.11, B=2.22, C=3.33 and so forth.
If I plug in A, my answer is 1. not 1.11
If I plug in ABC, my answer is 6. not 6.66.
Is there a way so I can get the decimals to be included in the code
Thanks