COUNTIF Statment - multiple variables

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
 
F

Frank Kabel

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

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top