Adding easy

  • Thread starter Thread starter cj21
  • Start date Start date
C

cj21

I have a list of products and corresponding values as follows:

Product Value
01 10
01 12
01 16
02 41
02 17
03 4
03 5

I want a formula that adds up the values for each cattogry. In
otherwords i want a new table like:

Product Value
01 38
02 58
03 9


Any formula for this?

Thanks for the help

Chris
 
Thanks for the advice. But at the moment i don't really have time t
learn pivot tables. Any chance of a formula?

Chri
 
You could try subtotals. You need to have column headings for your table,
and your table needs to be sorted. Then you could set up subtotals (Data -->
Subtotals) for a change in your product, sum the quantity field.

Best of luck!
 
you could use this, but the more Product you have, the more columns you will
need to use. You can then total up the columns of each product (1, 2, 3...etc)
A B C D
E
Product Value 1 2 3
1 10 IF($B21,$C2,"") IF($B22,$C2,"") IF($B23,$C2,"")
1 12 IF($B31,$C3,"") IF($B32,$C3,"") IF($B33,$C3,"")
1 16 IF($B41,$C4,"") IF($B42,$C4,"") IF($B43,$C4,"")
2 41 IF($B51,$C5,"") IF($B52,$C5,"") IF($B53,$C5,"")
2 17 IF($B61,$C6,"") IF($B62,$C6,"") IF($B63,$C6,"")
3 4 IF($B71,$C7,"") IF($B72,$C7,"") IF($B73,$C7,"")
3 5 IF($B81,$C8,"") IF($B82,$C8,"") IF($B83,$C8,"")
 
Ooops.... I was missing the '=' signs !!!

=IF($B2=1,$C2,"") =IF($B2=2,$C2,"") =IF($B2=3,$C2,"")
=IF($B3=1,$C3,"") =IF($B3=2,$C3,"") =IF($B3=3,$C3,"")
=IF($B4=1,$C4,"") =IF($B4=2,$C4,"") =IF($B4=3,$C4,"")
=IF($B5=1,$C5,"") =IF($B5=2,$C5,"") =IF($B5=3,$C5,"")
=IF($B6=1,$C6,"") =IF($B6=2,$C6,"") =IF($B6=3,$C6,"")
=IF($B7=1,$C7,"") =IF($B7=2,$C7,"") =IF($B7=3,$C7,"")
=IF($B8=1,$C8,"") =IF($B8=2,$C8,"") =IF($B8=3,$C8,"")
 

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

Similar Threads

Counting numbers 10
Graph standardized values 3
Total 1
How to get largest date from a Vlookup 1
Lookup part of a cell's contents and return value of entire cell 2
VLOOKUP 3
macro criteria copy 9
Excel formula 2

Back
Top