#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Counting Ages

I have a number of rows of data with ages of individuals.

I'd like to count the number of ages, but not all individually.

For example, I'd like to count the total number of 6 - 12 year olds in my
column of ages, etc.

I've been using =COUNTIF(A:A, 1) and then adding them all together, but I
don't want to have to do this for all the numbers from 0 - 86 (my highest
number).

Thanks so much.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Counting Ages

=SUM(COUNTIF(A:A,{"=6","12"})*{1,-1})


"Myjogli" wrote:

I have a number of rows of data with ages of individuals.

I'd like to count the number of ages, but not all individually.

For example, I'd like to count the total number of 6 - 12 year olds in my
column of ages, etc.

I've been using =COUNTIF(A:A, 1) and then adding them all together, but I
don't want to have to do this for all the numbers from 0 - 86 (my highest
number).

Thanks so much.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Counting Ages

Assume your ages are in the range A1:A20

Enter you age intervals in a range of cells like this:

......C.....D
1...6.....12
2...13...25
3...26...40

Then enter this formula in E1 and copy down as needed:

=COUNTIF(A$1:A$20,"="&C1)-COUNTIF(A$1:A$20,""&D1)

--
Biff
Microsoft Excel MVP


"Myjogli" wrote in message
...
I have a number of rows of data with ages of individuals.

I'd like to count the number of ages, but not all individually.

For example, I'd like to count the total number of 6 - 12 year olds in my
column of ages, etc.

I've been using =COUNTIF(A:A, 1) and then adding them all together, but I
don't want to have to do this for all the numbers from 0 - 86 (my highest
number).

Thanks so much.



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
Calculating ages Lynne Excel Discussion (Misc queries) 1 November 14th 06 03:24 AM
calculating ages pama Excel Worksheet Functions 3 November 7th 06 07:21 PM
dates into ages Caz Excel Worksheet Functions 1 February 28th 06 04:10 AM
Dates/ Ages Brian Excel Worksheet Functions 7 August 3rd 05 10:25 AM
Calculating Ages from Birthdates Kendle Excel Discussion (Misc queries) 2 January 6th 05 07:16 PM


All times are GMT +1. The time now is 11:31 AM.

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"