def get_index(sheet, *names):
    """
    Returns the column index for the first matching name, assuming first row is header
    Matching is done with leading and trailing whitespace stripped, and case insensitive
    """
    header = [(c.value or "").strip().lower() for c in sheet[1]]
    for name in names:
        name = name.strip().lower()
        if name in header:
            return header.index(name)
    raise AttributeError(f"None of {names} found in header {header}")