def excel_index(column):
    """ Takes a string and returns what column it would be in Excel. """
    # Not needed but will insure the right values. There are different
    # ASCII values for uppercase and lowercase letters.
    letters = list(column.upper())
    # This works like this: LOL = 8514
    # 26^2 * 12(L) + 26^1 * 15(O) + 26^0 * 12 = 8514
    rev = list(reversed(letters))
    return sum([26**i * (ord(x) - 64) for i, x in enumerate(rev)])