View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom Peo Sjoblom is offline
external usenet poster
 
Posts: 3,268
Default To count how many are in a certain age group

=COUNTIF(A2:A500,"=30")-COUNTIF(A2:A500,"39")

do the same for the other age groups

another way

=SUMPRODUCT(--(A2:A500=30),--(A2:A500<=39))


--


Regards,


Peo Sjoblom


"LEG" wrote in message
...
Hi! I'm looking for at forumla to count how many are in a certain age
group.
I have a list of people and their ages and would like to know how many are
in
the age group f.eks. between the ages of 30 and 39, 40 and 49 and so on
--
LEG