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'