Answers for "convert excel cellname to index python"

0

convert excel cellname to index python

Function columnNumber(colLetter As String) As Integer

    Dim colNumber As Integer
    Dim i As Integer

    colLetter = UCase(colLetter)
    colNumber = 0
    For i = 1 To Len(colLetter)
        colNumber = colNumber + (Asc(Mid(colLetter, Len(colLetter) - i + 1, 1)) - 64) * 26 ^ (i - 1)
    Next

    columnNumber = colNumber

End Function
Posted by: Guest on May-11-2020

Code answers related to "convert excel cellname to index python"

Python Answers by Framework

Browse Popular Code Answers by Language