spreadsheet inventory fix