Countif issue

pontiff

Board Regular
Joined
Jun 11, 2009
Messages
150
Office Version
  1. 2016
Hello again it's been a while. :) Hope you can help once again.

I have a spreadsheet where each row holds grades data for a student.
Each student has 3 columns of grades ( not adjacent to each other.)

I want to countif column A, C, or E contains an A* grade ( a "starred A") as opposed to an A grade (without the *)

I cant persuade it to differentiate between "A*" and "A" . The grades were generated from a vlookup table.

Sorry if this is poorly described.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hello again it's been a while. :) Hope you can help once again.

I have a spreadsheet where each row holds grades data for a student.
Each student has 3 columns of grades ( not adjacent to each other.)

I want to countif column A, C, or E contains an A* grade ( a "starred A") as opposed to an A grade (without the *)

I cant persuade it to differentiate between "A*" and "A" . The grades were generated from a vlookup table.

Sorry if this is poorly described.
As long as the cells between the target cells don't contain any of the characters of interest...

=COUNTIF(A2:E2,"A~*")

Otherwise, you could string each cell test together like this:

=COUNTIF(A2,"A~*")+COUNTIF(C2,"A~*")+COUNTIF(E2,"A~*")
 
Upvote 0
Ahhh... thank you all once again! The little ~ , who would have thought. What exactly does it do? ( apart from solve my problem that is)
 
Upvote 0
Ahhh... thank you all once again! The little ~ , who would have thought. What exactly does it do? ( apart from solve my problem that is)
The COUNTIF function supports the use of wildcards.

In this application the tilde character tells Excel to evaluate the asterisk as the literal asterisk character and not the asterisk wildcard character.
 
Upvote 0

Forum statistics

Threads
1,226,730
Messages
6,192,708
Members
453,748
Latest member
akhtarf3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top