How to search for ? (question mark) in Excel

77

12

When I try to find the question mark character (?) in an Excel sheet, Excel cannot locate the cells containing them. How can I search for ? in Excel?

Mehper C. Palavuzlar

Posted 2012-08-07T12:23:02.993

Reputation: 51 093

8The same applies to *, in case you want to expand your question :) – Der Hochstapler – 2012-08-07T17:54:40.510

Answers

102

To search for the cells containing the question mark character (?), use a tilde before it inside the search box:

~?

Now Excel will show you only the cells that contain the question mark character (?).

Mehper C. Palavuzlar

Posted 2012-08-07T12:23:02.993

Reputation: 51 093

1This works for for finding question marks in filters as well. – Nomic – 2015-04-22T04:44:27.073

I wonder why... For me, Excel 2010 finds ? as it would with any character/letter or number. – Dave – 2012-08-07T12:27:01.513

I just tried it on Office 2010 and it couldn't find ?. With each click on "Find" button, it just select cells starting with the first cell in the sheet. – Mehper C. Palavuzlar – 2012-08-07T13:14:26.380

Note: The cell contains only the question mark and nothing else. – Mehper C. Palavuzlar – 2012-08-07T13:15:47.873

45

The ? is a wildcard which represents a single character, and the * is a wildcard character that represents any string of characters.

When searching for either wildcard character, Excel will simply find everything, whether or not these actual characters appear in the cells you're searching.

To find either of the specific characters, when not using them in a wildcard search, you must precede it in your search criteria with a tilde, the ~ character.

  • ~? finds only the ? character
  • ~* finds only the * character
  • ? finds all single characters
  • * finds all strings of characters

mlgriggs

Posted 2012-08-07T12:23:02.993

Reputation: 451

10~~ finds only the ~ character – Dan – 2016-01-07T15:21:13.593