Help with a Count formula with multiple criteria

reverett

New Member
Joined
Mar 13, 2017
Messages
5
Hello,

I am trying to get a count multiple criteria. I have an basic example of my spreadsheet below. I want to know how many adults were present within each zone. How would I count the number of adults have yes in column B and then get a count of the adults who have yes in column b by zone? The zone is in column A.

[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]Zone[/TD]
[TD]Adults Present[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]no[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]yes[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
How about


Excel 2013/2016
ABCDEFG
1ZoneAdults Present1234
21yes2112
32no
42yes
53yes
64yes
74yes
81yes
MHT
Cell Formulas
RangeFormula
D2=COUNTIFS($B:$B,"yes",$A:$A,D1)
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,164
Members
453,021
Latest member
Justyna P

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