Match multiple cells

AMAS

Active Member
Joined
Apr 11, 2010
Messages
472
Hi everyone,

I'm stumped on how to solve this with a formula or vba.

I have a list of student IDs in a column (A). Column B contains the classes they took. Column (C) contains their final assessment (pass or fail). The student IDs are unique to each student but recur multiple times (varying depending on how many classes each student took). I am trying to get see how many students passed all their classes without having to manually filter each ID and eyeball the results.

Any thoughts?

AMAS
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
I was afraid you were going to say that. It's one of the things on the 'to learn list'.

AMAS
 
Upvote 0
Thanks everyone for your suggestions. I have been thinking about how to best accomplish this and realized that I can use a formula with a combination of Countif and Countifs to determine if the students passed all their classes or not.

Code:
=IF(COUNTIF(A:A,A2)-COUNTIFS(A:A,A2,C:C,"Fail")>0,"Pass","Fail")

AMAS
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,254
Members
452,900
Latest member
LisaGo

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