def gen_excel_name(row, col):
    """Translate (0,0) into A1.

    Args:
        row: row index (zero-based)
        col: column index (zero-based)

    Returns:
        string representing cell name

    """
    if col < 26:
        col_name = chr(col + ord('A'))
    else:
        col_name = chr(int(col / 26) - 1 + ord('A')) + chr(col % 26 + ord('A'))
    return '%s%s' % (col_name, row + 1)
