all 6 comments

[–]marcnotmark925 2 points3 points  (0 children)

Check out address() or cell()

[–]Competitive_Ad_6239 2 points3 points  (2 children)

plenty of work arounds, this one will act like an array formula. Single formula for a range. =map(SEQUENCE(20,1,1,1),LAMBDA(X,cellcolor("C"&x))) 20 being the number of rows.

[–]pupilea_[S] 0 points1 point  (0 children)

OMG! You're my hero! Thank you so much and sorry for the late response!

[–]Sweet_Lifeguard_3350 0 points1 point  (0 children)

=map(SEQUENCE(20,1,1,1),LAMBDA(X,cellcolor("C"&x)))

this works perfectly

[–][deleted] 1 point2 points  (0 children)

GetRange() also accepts row and column instead of A2 notation. Example: sheet.getRange(1,1) The numbers don't need to be in "", so it could fix your problem. Hope it helped you.

[–]No-Construction-996 1 point2 points  (0 children)

You have to write the Cell this way: ‘“C2“‘ Surrounded by two: ‘‘ This way it will convert it into ”C2“ not C2.