Countif

  • Thread starter Thread starter ML
  • Start date Start date
M

ML

Hi.
I'm doing a spreadsheet for exam results statistics at the school where I
work.
In a column I'm using =COUNTIF(E23:AE23,"A") for the rows of each pupil
where the columns are the subjects.
Trouble is when I use =COUNTIF(E23:AE23,"A*") it counts the A and the A*,
How can I seperate the two?
Thanks
D
 
Since the asterisk (*) is a wildcard, you need to flag it as a literal
asterisk by preceeding it with a tilde (~).

Try this:
=COUNTIF(E23:AE23,"A~*")


Does that help?
***********
Regards,
Ron

XL2003, WinXP
 
Hi.
I'm doing a spreadsheet for exam results statistics at the school where I
work.
In a column I'm using =COUNTIF(E23:AE23,"A") for the rows of each pupil
where the columns are the subjects.
Trouble is when I use =COUNTIF(E23:AE23,"A*") it counts the A and the A*,
How can I seperate the two?
Use "A~*"
Tilde is an escape character for wildcards in some Excel operations.

Of course you could have subtracted the "A" result from "A*" but as the
* is a wildcard, that would bring in other results like AAA, if such
exist.
 

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

Similar Threads

Countif, index and match 2
Excel Need Countifs Formula Help 0
Countif and Right functions 8
Countifs with "or" embedded? 1
COUNTIF formula? 1
Help with countifs 1
Multiple Criteria 11
Formula Check... Please 7

Back
Top