Error catching for some spreadsheet helper functions