Spreadsheet encoding