Hi, just for fun, i tried to see if possible to sum the Alphabet in a Cell, example A=1, B=2.....Z=26
I create a table, Column A is all the alphabet, Column B is 1 to 26, below is my extract of my code, i get stuck at the ...... part. Anyone can help me continue? Anyway, just curious, possible to make it case-sensitive and how to make it not case-sensitive by adding a variable in the function. Like abcsum(abc,0 or 1) 0 = case sensitive and 1 = not case sensitive. Possible?
[code]
Function abcsum(abc As String) As Integer
Dim i As Long
i = Len(abc)
For i = 1 To Len(abc)
abcsum = Application.VLookup(Left(abc, i), Range("A:B"), 2, 0)
abcsum = abcsum + ......
Next i
End Function
Bookmarks