Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Countif in Excel to find the value A*

Status
Not open for further replies.

Chris559

Instructor
Dec 29, 2002
30
0
0
GB
Being a teacher I often use the mark A*, but trying to count this value in Excel is not easy. The asterisk is giving me a problem. I have used ~ before, but cant get this to work either. Any suggestions?
 
Hi,

I use =COUNTIF(A1:A23,"A~*")

Works fine for me...

There are two ways to write error-free programs; only the third one works.
 
If the A* is the only 2 char value in the column you could use

=COUNTIF(A1:A23,"??")

Which would ignore A, B, C, etc. But wouldn't work if you use D-, A+, etc

There are two ways to write error-free programs; only the third one works.
 
Thanks - Have now got it to work. I had the ~* round the wrong way!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top