def excel_style(row, col):
    """ Convert given row and column number to an Excel-style cell name. """
result = []
while col:
    col, rem = divmod(col - 1, 26)
result[:0] = LETTERS[rem]
return ''.join(result) + str(row)
if __name__ == '__main__':
    addresses = [(1, 1), (1, 26), (1, 27), (1, 52), (1, 53), (1, 78), (1, 
        79), (1, 104), (1, 18253), (1, 18278), (1, 702), (1, 703), (1, 
        16384), (1, 35277039)]
print('({:3}, {:>10}) --> {}'.format('row', 'col', 'Excel'))
print('==========================')
for row, col in addresses:
    pass
Получить имена столбцов в стиле Excel из номера столбца