Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

RC style Relative Referencing in OpenPyXL

from openpyxl.utils import get_column_letter

def xlref(row, column, zero_indexed=True):
    if zero_indexed:
        row += 1
        column += 1
    return get_column_letter(column) + str(row)
    
>>> xlref(0, 0)
'A1'
>>> xlref(100, 100)
'CW101'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #RC #style #Relative #Referencing #OpenPyXL
ADD COMMENT
Topic
Name
4+1 =