Count if age between age range at specific date

M4rk

New Member
Joined
Oct 22, 2012
Messages
20
I have an existing formula that returns the number of active members attending various activities for a given month using the following countifs formula:

=COUNTIFS(KAMembers[[#All],[Sep2]],">2012/09/01",KAMembers[[#All],[Clubs 1]],Lists!$G$2,KAMembers[[#All],[Gender]],"F")

I would like to add another criteria to the formula to narrow results even further by age range 11-13, 14-16, 17-19 etc as at the last day of each month.

My mind has gone blank and nothing I try works!

The workbook contains a membership worksheet (KAMembers) and individual worksheets for each month (Sep2 etc) to record attendances.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
You should be able to do that easily using the same formatt that you have. You have to add a column witht he members age, then add additional criterea to your count if statement saying if age is greater than this and less than this.
The criterea is typed in using the following format:

Range,">11",Range,"<13" for the ll-13 group.
 
Upvote 0
Thanks chataylo, I took your advice and created additional columns to return everyone's ages at each month end and although it's been a bit of a pain to modify the formula for each cell in my report it seems to work fine and returns the individual attendances by age range and gender. Here's the modified formula

=COUNTIFS(KAMembers[[#All],[Sep]],">=2012/09/01",KAMembers[[#All],[Clubs 1]],Lists!$G$2,KAMembers[[#All],[Gender]],"M",KAMembers[[#All],[Age at Sept]],">=11",KAMembers[[#All],[Age at Sept]],"<=13")
 
Upvote 0
Appreciate the feed back.

chataylo

Thanks chataylo, I took your advice and created additional columns to return everyone's ages at each month end and although it's been a bit of a pain to modify the formula for each cell in my report it seems to work fine and returns the individual attendances by age range and gender. Here's the modified formula

=COUNTIFS(KAMembers[[#All],[Sep]],">=2012/09/01",KAMembers[[#All],[Clubs 1]],Lists!$G$2,KAMembers[[#All],[Gender]],"M",KAMembers[[#All],[Age at Sept]],">=11",KAMembers[[#All],[Age at Sept]],"<=13")
 
Upvote 0

Forum statistics

Threads
1,226,063
Messages
6,188,653
Members
453,489
Latest member
jessrw

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