code to transpose a spreadsheet