Passing cell references to spreadsheet functions
When I call a spreadsheet function, say int(f2) , the function operates on the value in the cell. If cell("F2") contains 3.14159, the result would be 3. But when I call a different type of function — for example: row(f8) — the function takes the cell reference, and not the value, in this case, returning 8. How do I get my custom function to work with the reference, rather than the value? I can pass a string, and use getRange() , but, if I move or update the cells on the sheet, the strings won't change. Really simple example: function GetFormula(cellname) { return SpreadsheetApp.getActiveSheet(