COUNTIF Statment - multiple variables

  • Thread starter Thread starter juliewine
  • Start date Start date
J

juliewine

I have a list of employee ages that need to be in chart form based on
certain age range. Ex., 20-29, 30-39, 40 -49.

I am trying to do a COUNTIF statement that would count all the ages i
a particular category. Ex., COUNTIF (D1:D12,"<=30"). This works fin
excpet that I need it to count <=30 and >20.

Any ideas on how to do this? Or is there an easier way to put thi
information into chart form?

Thank you for your help.

Juli
 
Hi Julie
try
=SUMPRODUCT(--(D1:D12>20),--(D1:D12<=30))

or
=COUNTIF(D1:D12,"<=30")-COUNTIF(D1:D12,"<=20")
 
Back
Top