View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom Peo Sjoblom is offline
external usenet poster
 
Posts: 3,268
Default Missing count of age to a group of ages

If you want to include 21 and 30 you can use

=SUM(COUNTIF(F26:F47,{"<21","<=30"})*{-1,1})

if not then the original formula works as it should


--
Regards,

Peo Sjoblom



"chedd via OfficeKB.com" <u18187@uwe wrote in message
news:7408f90b31bfb@uwe...
Hi

I am using this formula to count the number of ages to add to a group of
ages.
It is fine until I have age of 21 or 30 to where it is missing the age
range
in the count. Please can you help so i can pick these missing ages in my
report.

=SUM(COUNTIF(F26:F47,{"<=21","<30"})*{-1,1})

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200706/1