def int2name(i):
    """ Convert integer to Excel column name. """
    div = i + 1
    name = ''
    while div > 0:
        mod = (div - 1) % 26
        name = chr(65 + mod) + name
        div = (div - mod) // 26
    return name
