#1   Report Post  
Posted to microsoft.public.excel.misc
cj21
 
Posts: n/a
Default Adding easy


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


--
cj21
------------------------------------------------------------------------
cj21's Profile: http://www.excelforum.com/member.php...o&userid=25673
View this thread: http://www.excelforum.com/showthread...hreadid=512664

  #2   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default Adding easy

A pivot table is exactly what you want. See:

http://peltiertech.com/Excel/Pivots/pivotstart.htm
--
Gary's Student


"cj21" wrote:


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


--
cj21
------------------------------------------------------------------------
cj21's Profile: http://www.excelforum.com/member.php...o&userid=25673
View this thread: http://www.excelforum.com/showthread...hreadid=512664


  #3   Report Post  
Posted to microsoft.public.excel.misc
cj21
 
Posts: n/a
Default Adding easy


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

Chris


--
cj21
------------------------------------------------------------------------
cj21's Profile: http://www.excelforum.com/member.php...o&userid=25673
View this thread: http://www.excelforum.com/showthread...hreadid=512664

  #4   Report Post  
Posted to microsoft.public.excel.misc
TR
 
Posts: n/a
Default Adding easy

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!

"cj21" wrote:


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

Chris


--
cj21
------------------------------------------------------------------------
cj21's Profile: http://www.excelforum.com/member.php...o&userid=25673
View this thread: http://www.excelforum.com/showthread...hreadid=512664


  #5   Report Post  
Posted to microsoft.public.excel.misc
ufo_pilot
 
Posts: n/a
Default Adding easy



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,"")


"TR" wrote:

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!

"cj21" wrote:


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

Chris


--
cj21
------------------------------------------------------------------------
cj21's Profile: http://www.excelforum.com/member.php...o&userid=25673
View this thread: http://www.excelforum.com/showthread...hreadid=512664




  #6   Report Post  
Posted to microsoft.public.excel.misc
ufo_pilot
 
Posts: n/a
Default Adding easy

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,"")


"TR" wrote:

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!

"cj21" wrote:


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

Chris


--
cj21
------------------------------------------------------------------------
cj21's Profile: http://www.excelforum.com/member.php...o&userid=25673
View this thread: http://www.excelforum.com/showthread...hreadid=512664


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy question? Page numbers ATC Excel Discussion (Misc queries) 1 February 1st 06 04:27 AM
adding vertical bars to an embedded chart using VBA Wazooli Excel Discussion (Misc queries) 0 November 15th 05 05:47 PM
help neede with adding times rvnwdr Excel Discussion (Misc queries) 1 June 17th 05 02:15 PM
problem adding rvnwdr Excel Discussion (Misc queries) 2 June 8th 05 06:36 PM
new user with easy question? not easy for me speakeztruth New Users to Excel 5 June 3rd 05 09:40 PM


All times are GMT +1. The time now is 08:18 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"