Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / July 2007

Tip: Looking for answers? Try searching our database.

Problem getting values

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Excel worksheet funtions - 19 Jul 2007 21:18 GMT
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?
excelent - 19 Jul 2007 21:56 GMT
=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?
T. Valko - 19 Jul 2007 21:58 GMT
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))

Signature

Biff
Microsoft Excel MVP

> 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?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.