Search code examples
google-sheetsgoogle-sheets-formulags-conditional-formatting

Google Sheets conditional formatting based on relative reference using another sheet's cell values


Using Google Spreadsheets, Excel doesn't seem to have the same problem.

I have a 100-cell column; In that column, I need every cell to check relative reference using another sheet's value. The problem is that conditional formatting seems to only accept INDIRECT, which unfortunately doesn't support relative reference.

I need Cell B3 to check Sheet2!$G3, and see if it is higher than 0, and if so, let the cell be green. Therefore I want Cell B4 to check Sheet2!G4; Ergo Cell B5 to check Sheet2!G5, and so on.

I haven't seen the issue to be addressed yet, will appreciate anyone's help.


Solution

  • try:

    =B1>INDIRECT("Sheet2!G"&ROW())
    

    0