Sum up cells based on the value yes/no

rxman911

New Member
Joined
Jun 7, 2022
Messages
2
Office Version
  1. 365
Platform
  1. MacOS
First the disclaimer: As a Firefighter, I'm new to being an administrator or working with excel but as a newly appointed scoutmaster for my boys, I'm doing my best. We are preparing for summer camp and I have a spreadsheet that I need to extract some info and was hoping to get it done automatically.

Here's the question: I have three columns, Column A responses are Y or N for yes or no to attending, Column B responses are M or F for male or female, Column C responses are Y or A for youth or adult.

I need to extract the following:
number of male scouts attending
number of female scouts attending
number of male adults attending
number of female adults attending

any help is appreciated
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Welcome to Mr. Excel.

Ideally, if you could show a sample of your sheet using XL2BB I'm confident you'll get some feedback.
 
Last edited:
Upvote 0
Maybe this?

Book2
ABCDEFGH
1NameAttendingGenderYouth/Adult# Male Scouts# Female Scouts# Male Adults# Female Adults
2Person1YMY2112
3Person2YMY
4Person3YFY
5Person4YFA
6Person5NMA
7Person6YFA
8Person7NMA
9Person8NFY
10Person9YMA
11Person10NFA
Scouts
Cell Formulas
RangeFormula
E2E2=COUNTIFS($B$2:$B$11,"Y",$C$2:$C$11,"M",$D$2:$D$11,"Y")
F2F2=COUNTIFS($B$2:$B$11,"Y",$C$2:$C$11,"F",$D$2:$D$11,"Y")
G2G2=COUNTIFS($B$2:$B$11,"Y",$C$2:$C$11,"M",$D$2:$D$11,"A")
H2H2=COUNTIFS($B$2:$B$11,"Y",$C$2:$C$11,"F",$D$2:$D$11,"A")
 
Last edited:
Upvote 0
Solution

Forum statistics

Threads
1,215,129
Messages
6,123,212
Members
449,090
Latest member
bes000

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