Counting "Question Marks"

  • Thread starter Robin Blackwell
  • Start date
R

Robin Blackwell

Hi all, is there a simple function that will allow me to count the number of
"?" in a column of data? I have a longish column that contains only "y",
"n",blanks, or "?". I can use COUNTIF functions to count the number of "y"
and "n", COUNTBLANK to count the number of blank cells, but if I enter a
COUNTIF using "?", it returns a count of all cells containing data. Help
please! Regards, Robin
 
B

Bob Phillips

=COUNTIF(A:A,"~?")

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
B

Bob Phillips

It is an escape character, it tells Excel not to treat the following
character as a special character (? is the single wildcard character) but as
a normal ASCII character.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
S

shail

Thankyou Bob, for sharing the knowledge.

Shail

Bob said:
It is an escape character, it tells Excel not to treat the following
character as a special character (? is the single wildcard character) but as
a normal ASCII character.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top