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

Signature
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
> 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
Robin Blackwell - 07 Nov 2006 11:32 GMT
Many thanks Bob!
> =COUNTIF(A:A,"~?")
>
[quoted text clipped - 6 lines]
>> COUNTIF using "?", it returns a count of all cells containing data. Help
>> please! Regards, Robin
shail - 07 Nov 2006 12:19 GMT
Hi Bob,
What does "~" do here?
Thankyou
Shail
> =COUNTIF(A:A,"~?")
>
[quoted text clipped - 12 lines]
> > COUNTIF using "?", it returns a count of all cells containing data. Help
> > please! Regards, Robin
Bob Phillips - 07 Nov 2006 13:25 GMT
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.

Signature
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
> Hi Bob,
>
[quoted text clipped - 20 lines]
> > > COUNTIF using "?", it returns a count of all cells containing data. Help
> > > please! Regards, Robin
shail - 07 Nov 2006 14:24 GMT
Thankyou Bob, for sharing the knowledge.
Shail
> 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
[quoted text clipped - 36 lines]
> Help
> > > > please! Regards, Robin