Totaling sections within a list

S

steev_jd

Hi,

I have a very long list laid out in the fashion below;

T-Shirt Red 5
T-Shirt Green 6
T-Shirt Blue 3
T-Shirt Orange 7
Trainers White 8
Trainers Green 7
Trainers Blue 9
Shorts Blue 2
Shorts Red 3

Where cell A1 contains 'T-Shirt Red'
and cell B1 contains '5'

Is it possible to implement a formula that subtotals all of the
sections i.e.
T-Shirts 21
Trainers 24
Shorts 5
?


Thanks in advance,
Steve
 
B

Bondi

Hi Steve,

Maybe you can use SUMIF() and a wildcard *

Somethinge like:

=SUMIF(A1:A9,"T-shirts*",B1:B9)
=SUMIF(A1:A9,"Trainers*",B1:B9)
and
=SUMIF(A1:A9,"Shorts*",B1:B9)

Regards,
Bondi
 

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