https://kelsiegrant.blogspot.com/2022/04/google-sheets-invert-table-solved.html