How do I count my data that are between specific values?

G

Guest

I have a column on sheet1! that gives ages of clients
A
5
59
12
22
33
17
6
18
I want to calculate totals for clients in the age range of 5-12,13-17, and
18+.
I tried using a sumproduct and sum if and neither is working
 
T

Trevor Shuttleworth

One way

=SUMIF(B1:B10,"<=12",C1:C10)-SUMIF(B1:B10,"<5",C1:C10)

=SUMIF(B1:B10,"<=17",C1:C10)-SUMIF(B1:B10,"<13",C1:C10)

=SUM(C1:C10)-SUMIF(B1:B10,"<17",C1:C10)

Regards

Trevor
 

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