Refining output format to suit exporting to spreadsheet