Search code examples
regexgoogle-sheetsgoogle-sheets-formulaextractconditional-formatting

Trying to Highlight the Value From Conditional Formatting


I am trying to highlight the Column J using Conditional Formatting in case of first value before / >139 OR Last value after / >89 then highlight. I have tried but its not working. your help will be appreciated.

=OR(IF(TRIM(LEFT(J3,FIND("/",J3)-1))>139),IF(RIGHT(J3,FIND("/",J3)-2)>89))

Sheetlink


Solution

  • try:

    =(REGEXEXTRACT(J1, "^\d+")*1>139)+(REGEXEXTRACT(J1, "\d+$")*1>89)
    

    enter image description here