Writes to spreadsheet