I use the ff. custom formula for conditional formatting in Google sheets:

=sum(arrayformula(n(regexmatch($J2:$W, "Unsure|Yes")))) = 0

However, it also colors empty cells.

I tried to incorporate the formula as suggested here but couldn't get it to work either.

If you need to see the sheet I'm using, here's a copy.

1 Answer 1


An easy way to avoid coloring empty cells is to just check if the cell is empty using isblank(). Replace the formula with

=and(not(isblank(J2)),sum(arrayformula(n(regexmatch($J:$W, "Unsure|Yes")))) = 0)

I've done this for your sheet copy.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.