google apps script - setFormulaR1C1() doesn't translate to A1 notation in all cases...? -


i'm trying write function sets formula in cell using relative r1c1 notation because don't know row number cell have. i've used cell.setformular1c1(string) twice, in third case i'm not sure what's not working.

when pass string setformular1c1() applied cell h34

"=r[0]c[-4]*value(iferror(regexextract(index(cse!i:i;match(r[0]c[-6];cse!a:a;0);1);\"[0-9]+\");\"0\"))" ; 

should spit out

=d34*value(iferror(regexextract(index(cse!i:i,match(a34,cse!a:a,0),1),"[0-9]+"),"0")) 

...right? instead not translating string a1 notation , receive parse error. backslashes

elsewhere have had success using similar formula...

paymentdueformulacell.setformular1c1("=r[0]c[-3]-r[0]c[-2]-r[0]c[-1]"); 

which, when set cell j34 gets correctly rendered as

=g34-h34-i34 

can intuit differences might missing?

have tried using indirect formula? turns string cell reference.

=indirect("some string"&"some string")

for example:

=indirect("a"&"1") interpreted cell a1


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -