I would like to use a conditional formatting rule in an excel file that would color any box with a question mark in it red. It seems that Excel is using a question mark as a wild card and will turn all cells with at least one character in them red. How can i escape the question mark?

These don't seem to work:

  • "?"
  • \?
  • '?'
  • ??
up vote 64 down vote accepted

Prefix it with tilde

~?
  • 8
    Prefix with a ~ ? Seriously ? What the rofl... Does anyone have an idea why ? Anyway, huge thanks. I'd never have figured out such a syntax alone. – Balmipour Jun 27 '17 at 15:43

Change the rule to "cells ending with" "?". This will color all cells with a question mark assuming it is the last character.

Also you can use Specific Text > Contains > ~? This tells excel to ignore symbol command and treats the cell as text.

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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