i followed the post https://developers.google.com/apps-script/guides/sheets/functions
function DOUBLE(input) {
return input * 2;
}
and copied the very simple DOUBLE function into my app-script.
=double(A1)
is working and double my integer in 'A1' But when i filled column A with values, like
A1 = 2
A2 = 3
A3 = 4
....
And in B1 cell, i run
=arrayformula(double(A1:A))
it returned error "Result was not a number", #NUM!
I am not sure what goes wrong. Could any app-script gurus helps?
Thanks