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?

Originating SiteDescription
USPass
USPass
UKPass
USFail
USPass
UKFail

<tbody>
</tbody>
Desired Output

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

Any help will be appreciated.

Thanks,
RAC
 
Last edited:

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
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,213,527
Messages
6,114,148
Members
448,552
Latest member
WORKINGWITHNOLEADER

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