Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R1C1 cell reference in Google Sheets doesn't work for me

I'm trying to make a complicated formula work using R1C1 notation. During my troubleshooting I can't even make this work in a cell:

=IF(R[0]C[2] = "B", 1, 0)

What am I doing wrong?

like image 301
user3338765 Avatar asked Sep 23 '15 21:09

user3338765


People also ask

How do I use R1C1 in Google Sheets?

R1C1 is an absolute reference to the cell at position (1,1) in your Sheet, i.e. A1 in regular notation. The reference with square brackets – R[1]C[1] – is a relative R1C1 reference meaning the cell 1 row down and 1 column to the right of the current cell, wherever that is in your worksheet.


1 Answers

I think may be automatic in a script but in a Sheet needs to be forced, eg:

=IF(INDIRECT("R[0]C[2]", FALSE) = "B", 1, 0)
like image 51
pnuts Avatar answered Nov 15 '22 11:11

pnuts