Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Problem getting values

How can I calculate ages for example I have colums with ages and I need to
know how many people between of age of 20 to 30?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 695
Default Problem getting values

=SUMPRODUCT((A1:A100=20)*(A1:A100<=30))



"Excel worksheet funtions" skrev:

How can I calculate ages for example I have colums with ages and I need to
know how many people between of age of 20 to 30?

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

Do you mean =20 but <= 30?

Try one of these:

=COUNTIF(A1:A10,"=20")-COUNTIF(A1:A10,"30")

=INDEX(FREQUENCY(A1:A10,{20,30}-{1,0}),2)

=SUMPRODUCT(--(A1:A10=20),--(A1:A10<=30))

--
Biff
Microsoft Excel MVP


"Excel worksheet funtions" <Excel worksheet
wrote in message
...
How can I calculate ages for example I have colums with ages and I need to
know how many people between of age of 20 to 30?



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
Problem with getting numbers in some range values!? Ivica TypeR Excel Worksheet Functions 2 July 10th 07 01:29 AM
CountIf & null values problem chris100 Excel Worksheet Functions 3 December 5th 05 12:36 PM
Problem with adding time values Dan Excel Worksheet Functions 4 November 10th 05 04:51 PM
Problem with % Values Erin Excel Discussion (Misc queries) 1 July 20th 05 03:29 PM
Problem with updating values with INDIRECT.EXT SU Excel Worksheet Functions 1 April 8th 05 10:14 AM


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