def format_value_for_spreadsheet(value):
    """Format a value into a string to be written in a spreadsheet cell."""
    if isinstance(value, (list, tuple)):
        return " & ".join([format_value_for_spreadsheet(v) for v in value])
    return str(value)