#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Liz Liz is offline
external usenet poster
 
Posts: 133
Default countif??

i have a list of peoples ages.. i need a formulat that tells me how many
people are aged from 0-19, 20-24, 24-25 etc. im using countif but i cant
figure out how to make it work. also i need to include 20 and 24 for example.
please help!!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,533
Default countif??

Hi

See if this can help you:

=Countif(A1:A100;"=20)-Countif(a1:A100;"24")

Regards,
Per

"Liz" skrev i meddelelsen
...
i have a list of peoples ages.. i need a formulat that tells me how many
people are aged from 0-19, 20-24, 24-25 etc. im using countif but i cant
figure out how to make it work. also i need to include 20 and 24 for
example.
please help!!


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 395
Default countif??

Assuming all of your ages were in column A, rows 1-100

=Sumproduct((A1:A100=0)*1,(A1:A100<20)*1)
=Sumproduct((A1:A100=20)*1,(A1:A100<25)*1)
etc.

HTH,
Keith


"Liz" wrote:

i have a list of peoples ages.. i need a formulat that tells me how many
people are aged from 0-19, 20-24, 24-25 etc. im using countif but i cant
figure out how to make it work. also i need to include 20 and 24 for example.
please help!!

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
countif ? joe@malvern[_2_] Excel Discussion (Misc queries) 6 July 30th 09 04:55 PM
How do I use a countif function according to two other countif fu. Kirsty Excel Worksheet Functions 2 February 20th 06 11:44 AM
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") sctroy Excel Discussion (Misc queries) 2 September 25th 05 04:13 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM


All times are GMT +1. The time now is 06:45 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"