Checking if a sheet cells includes errors or not
问题 I am using this script function to check if my cell functions in google sheet has any errors or not. Here is the code but it does not seems to be working. It keeps on saying no error when i have an error in a cell var ss = SpreadsheetApp.getActiveSpreadsheet(); var sourcename = "Sheet1"; var source = ss.getSheetByName(sourcename); var cell = source.getRange("A1:AG30"); function isError2(cell) { const errorValues = ["#NULL!", "#DIV/0!", "#VALUE!", "#REF!", "#NAME?", "#NUM!", "#N/A","#ERROR!"];