I use the Sheet() function in excel which is not supported in google sheets.
I found a code snippet to simulate the function
function SHEET() {return SpreadsheetApp.getActiveSheet().getIndex(); }
I set a trigger for it to run SHEET from Worksheet On Open however when I open the sheet, anywhere there is a formula such as
=INDIRECT(OFFSET(Balancing!P1,SHEET(A1)-3,0,1,1)&"!j201")
the cell shows loading and never loads. I have to open the script editor and run it. When it does run, it works great.
Does anyone know how to make this happen automatically?
SHEET(A1)
bySHEET()
– Rubén