Given a columns\' index, how can you get an Excel column name?
The problem is trickier than it sounds because it\'s not just base-26. The columns
in python, with recursion. translated from Joey's answer. so far, it's tested to work up to GetExcelByColumn(35) = 'AI'
def GetExcelColumn(index): quotient = int(index / 26) if quotient > 0: return GetExcelColumn(quotient) + str(chr((index % 26) + 64)) else: return str(chr(index + 64))