Count Values based on multiple critiera

rac241985

New Member
Joined
Jan 30, 2017
Messages
27
Hi All,

I want to count the total number of Pass and Fail based on Column 1 (Originating) site. For. Eg., If I select US, I should get 3 pass and 1 Fails, and if I select UK I should get 1 pass and 1 fails. Can someone please help?

[TABLE="width: 257"]
<tbody>[TR]
[TD]Originating Site[/TD]
[TD]Description[/TD]
[/TR]
[TR]
[TD]US[/TD]
[TD]Pass[/TD]
[/TR]
[TR]
[TD]US[/TD]
[TD]Pass[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]Pass[/TD]
[/TR]
[TR]
[TD]US[/TD]
[TD]Fail[/TD]
[/TR]
[TR]
[TD]US[/TD]
[TD]Pass[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]Fail[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Desired Output

Selected Site (Based on Dropdown) - US
Pass: 3
Fail: 1

Any help will be appreciated.

Thanks,
RAC
 
Last edited:

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hi,

Use COUNTIFS:


Book1
GHIJKL
1Originating SiteDescriptionYour Drop DownPassFail
2USPassUS31
3USPass
4UKPass
5USFail
6USPass
7UKFail
Sheet527
Cell Formulas
RangeFormula
K2=COUNTIFS($G2:$G7,$J2,$H2:$H7,K1)


K2 Formula copied over to L2
 
Upvote 0
And if your setup is Vertical:


Book1
GHIJK
1Originating SiteDescriptionYour Drop Down
2USPassUS
3USPassPass3
4UKPassFail1
5USFail
6USPass
7UKFail
Sheet527
Cell Formulas
RangeFormula
K3=COUNTIFS(G$2:G$7,J$2,H$2:H$7,J3)


K3 formula copied down to K4
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,912
Members
452,366
Latest member
TePunaBloke

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