As far as I know, you can't do it directly.
But your function could take 2 more arguments:
function f(cellValue, rowNum, columnNum) {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getActiveSheet();
var range = sheet.getRange(rowNum, columnNum);
var address = range.getA1Notation();
return address + " = " + cellValue;
}
Example of the usage of the formula:
= f(A1, row(A1), column(A1))
So we use native functions (row
& column
) inside custom formula.
OK, let's talk about your task.
The function should return true if the three cells above the given one are empty.
You may use this formula (no script needed):
=join("",OFFSET(B63,-3,,3))=""