...
Note: Excel has a cell height maximum of 409 pixels. Some aggregated values, such as holdings statements, will easily break that limit, so will be truncated on the spreadsheet.
Example: aggregate the instance_contributors so they appear on separate lines in one cell:
...
ii.title,
ii.hrid AS instance_hrid,
COUNT (DISTINCT ic.contributor_name) as count_of_contributors,
STRING_AGG (distinct ic.contributor_name, chr(10)) AS contributors
...