PC Review


Reply
Thread Tools Rate Thread

Counting Ages

 
 
Myjogli
Guest
Posts: n/a
 
      22nd Jun 2008
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 With Quote
 
 
 
 
Teethless mama
Guest
Posts: n/a
 
      22nd Jun 2008
=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.

 
Reply With Quote
 
T. Valko
Guest
Posts: n/a
 
      23rd Jun 2008
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" <(E-Mail Removed)> wrote in message
news4491615-0E39-479E-A2F3-(E-Mail Removed)...
>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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Browse for Folder" takes ages and ages Alastair McLachlan Windows XP Performance 1 3rd Sep 2008 12:33 PM
dates into ages =?Utf-8?B?Q2F6?= Microsoft Excel Worksheet Functions 1 28th Feb 2006 04:10 AM
Ages =?Utf-8?B?RGVuaXM=?= Microsoft Access Reports 7 9th Nov 2005 11:58 AM
people ages tom Microsoft Excel Worksheet Functions 3 23rd Aug 2004 10:35 PM
Ages of Empire II Wayne Windows XP Games 1 14th Sep 2003 03:47 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:05 PM.