Checking a row to see who got all 'A' Grades

dpbarry

Board Regular
Joined
Feb 10, 2003
Messages
214
Office Version
  1. 2016
Platform
  1. Windows
Hi folks..

You would know it was exam result time here in my place of work.

Not that I've got all the grades sorted out for the Principal, she is now looking for me to tally up all the students who got straight 'A' grades. I know there is going to be anotehr combination here but I'll start with the basics of straight 'A's

The screen below shows how the data is presented although I've slimmed down the headings to fit better.

How do I insert a formula to look at each row to see where based on the subjects taken, there are straight 'A's

Regards

Declan
Y13 & 14 Combined Worksheet.xls
ABCDEFGHIJKLMNOPQRSTUVWXYZ
1ArtArt2BiologyBSChemistryD&TDramaEconomicsE.LitFrenchGeographyHistoryH.EconICTICT2IrishLatinMathematicsMathsPureMusicPhysicsPoliticsPsychologyR.ESociologySpanish
2AAA
3AAAA
4ACDB
5BBAA
6CDBB
Sheet1
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
The formula:

=COUNTIF(A2:Z2,"A")=COUNTA(A2:Z2)

will return TRUE if all the results are grade A, otherwise FALSE. The first part of the formula counts the number of As.
 
Upvote 0
Cheers Andrew..

Job a good one.

Now for a silly question.

How do I sum up the 'True' values :oops:

Declan
 
Upvote 0
Ahh!! Think I've got it.

I've used the 'Countif' function to count the values that are true.

Deems to work.

Many thanks

Declan
 
Upvote 0
Delcan,

If you insert a column in column A, give it a title of "Straight A's".

In cell A2 copy the following formula:
=IF(COUNTIF(B2:AA2,"A")=26,"Straight A's","")

Then copy cell A2 down.

Have a great day,
Stan
 
Upvote 0
Delcan,

If you insert a column in column A, give it a title of "Straight A's".

In cell A2 copy the following formula:
=IF(COUNTIF(B2:AA2,"A")=26,"Straight A's","")

Then copy cell A2 down.

Have a great day,
Stan

That's a lot of exams to take at one time. :oops: :eek: I assumed all the subjects were listed, but only a selection were taken by each pupil.
 
Upvote 0
Hi Andrew..

I'd an idea this would happen.

Statistics, statistics and **** lies :LOL:

As it is, some students only take 3 A-Levels but some others take 4

What the principal is now looking for is where a pupil has all A's or 3 A's and a B.

Is there a way of counting if a student who has 4 grades has obtained 3 A's and a B?

I've added in a column that counts the number of subjects done and because we now have a list of how many A's, B's, C's etc that a student has, I'm trying to created a some sort of a nested 'If' statement that will check to see if the number of subjects taken = 4, the number of A's taken equals 3 and the number of B's equal 1 and set that value to true so that I can then add up the number of tru values.

Regards

Declan
 
Upvote 0
How about?

=OR(COUNTIF(A2:Z2,"A")=COUNTA(A2:Z2),AND(COUNTA(A2:Z2)=4,COUNTIF(A2:Z2,"A")=3,COUNTIF(A2:Z2,"B")=1))
 
Upvote 0
Cheers folks..

I'll give it a go and see what happens.

Declan
 
Upvote 0

Forum statistics

Threads
1,215,214
Messages
6,123,664
Members
449,114
Latest member
aides

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