Handles errors correctly, when spreadsheet is not filled in, and when spreadsheet is not present