Search code examples
regexgoogle-sheetsgoogle-sheets-formulags-conditional-formattingtextjoin

CheckBox to Highlight Range Google Sheets Formula/ Google Sheets


enter image description here

I am trying to get the result in the image attached. If I check a checkBox in Column A, I want it to also to highlight the same SKU & Location Column H,I(in Bright Green). Conditional formatting or if script could do this?


Solution

  • try:

    =REGEXMATCH($H2&$I2, TEXTJOIN("|", 1, FILTER($B$2:$B&$C$2:$C, $A$2:$A=TRUE)))
    

    0


    UPDATE:

    =REGEXMATCH($H2, TEXTJOIN("|", 1, FILTER($B$2:$B, $A$2:$A=TRUE)))