I\'m looking for the opposite to this Q&A: Convert an excel or spreadsheet column letter to its number in Pythonic fashion.
or this one but in python How to conv
This simple Python function works for columns with 1 or 2 letters.
def let(num): alphabeth = string.uppercase na = len(alphabeth) if num <= len(alphabeth): letters = alphabeth[num-1] else: letters = alphabeth[ ((num-1) / na) - 1 ] + alphabeth[((num-1) % na)] return letters