ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Age range (https://www.excelbanter.com/excel-discussion-misc-queries/68169-age-range.html)

Clash

Age range
 

Morning,

Can anyone help me, I'm trying to count the number of 18-21 y.o. on a
spreadsheet.

my spreadsheet has in column P, the age of each contact. So i'm trying
to determine each of the age bands 18-21, 21-25 & 26+, is this a simply
formula or something else.

Cheers :confused:


--
Clash
------------------------------------------------------------------------
Clash's Profile: http://www.excelforum.com/member.php...o&userid=18951
View this thread: http://www.excelforum.com/showthread...hreadid=506275


Elkar

Age range
 
Try this:

=SUMPRODUCT(--(P1:P100=18),--(P1:P100<=21))

HTH,
Elkar


"Clash" wrote:


Morning,

Can anyone help me, I'm trying to count the number of 18-21 y.o. on a
spreadsheet.

my spreadsheet has in column P, the age of each contact. So i'm trying
to determine each of the age bands 18-21, 21-25 & 26+, is this a simply
formula or something else.

Cheers :confused:


--
Clash
------------------------------------------------------------------------
Clash's Profile: http://www.excelforum.com/member.php...o&userid=18951
View this thread: http://www.excelforum.com/showthread...hreadid=506275



Bob Phillips

Age range
 
Your ranges overlap, "1 is in the first and the second, but something like

=COUNTIF(P:P,"=18")-COUNTIF(P:P,"21")

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Clash" wrote in
message ...

Morning,

Can anyone help me, I'm trying to count the number of 18-21 y.o. on a
spreadsheet.

my spreadsheet has in column P, the age of each contact. So i'm trying
to determine each of the age bands 18-21, 21-25 & 26+, is this a simply
formula or something else.

Cheers :confused:


--
Clash
------------------------------------------------------------------------
Clash's Profile:

http://www.excelforum.com/member.php...o&userid=18951
View this thread: http://www.excelforum.com/showthread...hreadid=506275




Clash

Age range
 

cheers both,

will try both.


--
Clash
------------------------------------------------------------------------
Clash's Profile: http://www.excelforum.com/member.php...o&userid=18951
View this thread: http://www.excelforum.com/showthread...hreadid=506275



All times are GMT +1. The time now is 02:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com