How to count cells with question marks in Excel?
Supposing you have a column of values which populated with some question marks “?”, and now, you need to count the number of question marks in this list. If you use the COUNTIF function to count the question marks cells in normal way, you can’t get the correct result. This article, I will talk about how to correctly count the cells with question marks in Excel?
In Excel, the question mark is a type of wildcard, so you should use the COUNTIF function as this:
Enter this formula: =COUNTIF(B2:B19,"~?") into a blank cell, and then press Enter key to get the correct result, see screenshot:
Note: In the above formula, B2:B19 is the data range that you want to count the question marks, you can change it to your need.
If you are interested in other solutions of this task in Excel, I can introduce you a useful tool—Kutools for Excel, with its Select Specific Cells feature, you can both locate the question marks and count the number of them.
|Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 60 days.|
1. Select the data range that you want to count the question marks cells.
2. Click Kutools > Select > Select Specific Cells, see screenshot:
3. In the Select Specific Cells dialog box, specify Cell under the Selection type, and choose Equals from the drop down list under Specific type, then enter ? that you want to count in the text box, see screenshot:
4. And then click Ok or Apply, a prompt box will pop out to tell you how many question marks cells in the data range, and the specific cells have been selected, see screenshot: