View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips[_3_] Bob Phillips[_3_] is offline
external usenet poster
 
Posts: 2,420
Default excel formula sumproduct and age ranges

18-24

=SUMPRODUCT(--(DATEDIF(rng_DoBs,TODAY(),"Y")=18),--(DATEDIF(rng_DoBs,TODAY(),"Y")<24))

etc.

--
__________________________________
HTH

Bob

"Tina" wrote in message
...
I really hope someone can help as I am a novice at anything other than the
simplest Excel formula!

I want to calculate the age of customers per month in clusters for ages -
for example in March 08 I want to know how many were 18-24, how many were
25-40 etc etc. I have been using sumproduct for loads of other
calculations
as follows

=SUMPRODUCT(--(MONTH('2008'!$L$2:$L$2000)=3))

but I dont know how to link on the additional query for age groups.

Thanks

Tina