Hi Carl
Array-enter (d.i. hit CONTROL+SHIFT+ENTER to enter) the following formula in C2 on the Counts sheet.
=SUM((YEAR(TODAY())-YEAR(BDATES)>=20)*((YEAR(TODAY())-YEAR(BDATES)<=30))*(GENDER="M")),
where BDATES (or DOB) and GENDER are the names given to the ranges of the birth dates and gender via the Name Box (or via the option Insert|Name|Define).
Adjust the part that computes the age if you want more precision with ages.
Aladin
How is SUM() getting a count of.
Thought COUNTIF was the counter.
Ecxuse my ignorance here.
COUNTIF cannot handle multiple conditions. Whence an array formula (for your situation) that is built with so-called Boolean expressions which when evaluated result in TRUE and/or FALSE values, put differently in 1 and/or 0 values. The formula produces a single array of 1's and 0's after the multiplication of 3 arrays of 1's and 0's. SUM sums the 1's to give you a count.
Aladin
That makes sense §:^) Thanks Aladin