Excel formule question, lookup and count

Lammers73

New Member
Joined
Jul 13, 2019
Messages
14
Hello,

Hope someone can help me out. I just cant solve it.

I have 2 colums filed with data:

Column 1 has a variety of names (lets say Pete, James, etc).
Column 2 has a result: "Passed" or "Failed"
Each Row is a registration of a test

So
Row 1 Pete failed
Row 2 James passed
Row 3 Pete passed

What I want to have in excel is to look up in column 1 all registrations under pete, and then (1) count the number of "passed" of all Pete's registrations and (2) give a % of the passed on the total registrations of Pete in all rows.
So I get Pete has 13 Passed with a Pass% of 75%

Thanks for your time and help!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
To get the count of "passed" records for Pete, you can use a formula like:
Excel Formula:
=COUNTIFS(A:A,"Pete",B:B,"passed")

To get the percentage of "passed" records for Pete, you can use a formula like:
Excel Formula:
=COUNTIFS(A:A,"Pete",B:B,"passed")/COUNTIF(A:A,"Pete")
 
Upvote 0
Solution
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,223,948
Messages
6,175,568
Members
452,652
Latest member
eduedu

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