Search code examples
regexgoogle-sheetsconditional-statementsgoogle-sheets-formulastring-formatting

Conditional Formatting Cells in a Column Only Containing Letters F-Z Excluding RR


How could I highlight cells using conditional formatting if I want to only highlight cells containing letters F-Z? The formula would also need to exclude RR.

For example, if a cell in that column contains RR or any letter from A to E, I don't want to highlight it. But, if it contains any letter from F all the way to Z, I want it automatically highlighted.

Tried using regexmatch, but it's not working.


Solution

  • use:

    =REGEXMATCH(A2, "[F-Z]")*(REGEXMATCH(A2, "RR")=FALSE)
    

    enter image description here