#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Countif

Hi,
I have a list of student exam grades that include A and A*. However, I
can't use countif to calculate the number of A* (returns the total of A and
A*) trying to countif the * doesn't work either (* is used as a wildcard and
returns everything!). I've tried using single quotation marks but to no
avail!

Any suggestions?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Countif

Hi

Try
=COUNTIF(A1:A100,"=A~*")

--
Regards

Roger Govier


"Tubthumper" wrote in message
...
Hi,
I have a list of student exam grades that include A and A*. However,
I
can't use countif to calculate the number of A* (returns the total of
A and
A*) trying to countif the * doesn't work either (* is used as a
wildcard and
returns everything!). I've tried using single quotation marks but to
no
avail!

Any suggestions?

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Countif

=COUNTIF(A1:A100,"A~*")

"Tubthumper" wrote:

Hi,
I have a list of student exam grades that include A and A*. However, I
can't use countif to calculate the number of A* (returns the total of A and
A*) trying to countif the * doesn't work either (* is used as a wildcard and
returns everything!). I've tried using single quotation marks but to no
avail!

Any suggestions?

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Countif

Just to add...

* and ? are wild cards.

To find them (edit|Find or =sumif(), =countif(), you use a ~ to tell excel that
you want to treat the next character as that character--not the wild card.

Use ~* to find/replace *
~? to find/replace ?
~~ to find/replace ~



Tubthumper wrote:

Hi,
I have a list of student exam grades that include A and A*. However, I
can't use countif to calculate the number of A* (returns the total of A and
A*) trying to countif the * doesn't work either (* is used as a wildcard and
returns everything!). I've tried using single quotation marks but to no
avail!

Any suggestions?

Thanks


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Countif

Hi Dave

I guess I was being too darned lazy again with my response.
Thanks for providing the OP with the detailed reason why the tilde ~
makes it work.

--
Regards

Roger Govier


"Dave Peterson" wrote in message
...
Just to add...

* and ? are wild cards.

To find them (edit|Find or =sumif(), =countif(), you use a ~ to tell
excel that
you want to treat the next character as that character--not the wild
card.

Use ~* to find/replace *
~? to find/replace ?
~~ to find/replace ~



Tubthumper wrote:

Hi,
I have a list of student exam grades that include A and A*. However,
I
can't use countif to calculate the number of A* (returns the total of
A and
A*) trying to countif the * doesn't work either (* is used as a
wildcard and
returns everything!). I've tried using single quotation marks but to
no
avail!

Any suggestions?

Thanks


--

Dave Peterson



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sumproduct vs. countif Coal Miner Excel Discussion (Misc queries) 1 June 15th 06 09:34 PM
Countif Formula /Sort Bug??? orcfodder Excel Discussion (Misc queries) 2 January 12th 06 10:04 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM


All times are GMT +1. The time now is 10:07 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"