#1   Report Post  
Posted to microsoft.public.excel.misc
Clash
 
Posts: n/a
Default count age ranges


Hi all,

can someone please help, I'm trying to count the number of 18-21,
22-26, etc in a column. My attempt is =COUNTIF($I$3:$I$10,"=18") which
counts the 18 y.o's and above, but not each oh the age ranges.
I don't know how to get the other ages to calculate.

many thanks


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

  #2   Report Post  
Posted to microsoft.public.excel.misc
Miguel Zapico
 
Posts: n/a
Default count age ranges

You may use try:
=SUMPRODUCT(--($I$3:$I$10=18),--($I$3:$I$10<22))
Change the ranges and values as appropiate

Hope this helps,
Miguel.

"Clash" wrote:


Hi all,

can someone please help, I'm trying to count the number of 18-21,
22-26, etc in a column. My attempt is =COUNTIF($I$3:$I$10,"=18") which
counts the 18 y.o's and above, but not each oh the age ranges.
I don't know how to get the other ages to calculate.

many thanks


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


  #3   Report Post  
Posted to microsoft.public.excel.misc
Arvi Laanemets
 
Posts: n/a
Default count age ranges

Hi

=COUNTIF($I$3:$I$10,"=18")-COUNTIF($I$3:$I$10,"<=21")


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"Clash" wrote in
message ...

Hi all,

can someone please help, I'm trying to count the number of 18-21,
22-26, etc in a column. My attempt is =COUNTIF($I$3:$I$10,"=18") which
counts the 18 y.o's and above, but not each oh the age ranges.
I don't know how to get the other ages to calculate.

many thanks


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



  #4   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default count age ranges

=COUNTIF($I$3:$I$10,"=18") -COUNTIF($I$3:$I$10,"21")

etc.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Clash" wrote in
message ...

Hi all,

can someone please help, I'm trying to count the number of 18-21,
22-26, etc in a column. My attempt is =COUNTIF($I$3:$I$10,"=18") which
counts the 18 y.o's and above, but not each oh the age ranges.
I don't know how to get the other ages to calculate.

many thanks


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

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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count consecutive dates only [email protected] Excel Discussion (Misc queries) 0 May 4th 06 03:58 PM
Count rows that match criteria in 2 different column cell ranges JoAnn New Users to Excel 2 December 9th 05 05:51 PM
How do I count cells in a column of dates between date ranges? Andrew82 Excel Worksheet Functions 2 April 14th 05 09:59 AM
Formula that will count between dates ranges jbsand1001 Excel Worksheet Functions 4 April 1st 05 11:41 PM
Formula that will count between dates ranges jbsand1001 Excel Worksheet Functions 0 March 7th 05 06:41 PM


All times are GMT +1. The time now is 01:54 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"