I've made a script in Google Sheets:
/**
* @param {array} input A row or a column.
* @param {function} condition A function returning bool.
* @return The last value in the input satisfying the condition.
* @customfunction
*/
function GetLastGoodValIn1DArray(input, condition) {
// realization ...
}
When I'm trying to call this function with the next arguments:
=GetLastGoodValIn1DArray(D11:H11;ISNUMBER)
I'm getting the next error:
Error
TypeError: #NAME? is not a function, but a string. (line 26).
Obviously 'ISNUMBER' interpreted as a string. But how to pass it as a function?
=GetLastGoodValIn1DArray(D11:H11;ISNUMBER(something))where something could be a value or a cell reference.