Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Combining same data in multiple rows

I have two columns of information: Column A has a number that represents a
product and Column B shows how many times that product was sold. I combined
the data from multiple worksheets so the product numbers repeat:

Prod# Product sales
610 3
611 1
612 5
612 1
612 3
613 5
613 1
613 2
614 1
614 4
614 1
622 1
622 3
622 2
623 2
623 12
623 2
624 2

How do I combine the product numbers in Column A to give me the total
products sold in Column B. Ex: Product#623 was sold twice today from one
website, 12 times from another website, and twice from yet another website
yielding 16 sales for product #623.

My list contains 30,000 numbers and Im looking for it not to sum up the
product numbers, just yield one sum for each product number. Help please!!!


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Combining same data in multiple rows

Create a unique list of products in, say, column C:
DataAdvanced filterCheck Copy to another place checkbox, List range:
$A:$A, Filter range: $A:$A, Copy to: $D$1

Enter this formula in E2 and fill it down:

=SUMIF(A:A,C2,B:B)

Regards,
Stefi

€˛Susienak€¯ ezt Ć*rta:

I have two columns of information: Column A has a number that represents a
product and Column B shows how many times that product was sold. I combined
the data from multiple worksheets so the product numbers repeat:

Prod# Product sales
610 3
611 1
612 5
612 1
612 3
613 5
613 1
613 2
614 1
614 4
614 1
622 1
622 3
622 2
623 2
623 12
623 2
624 2

How do I combine the product numbers in Column A to give me the total
products sold in Column B. Ex: Product#623 was sold twice today from one
website, 12 times from another website, and twice from yet another website
yielding 16 sales for product #623.

My list contains 30,000 numbers and Im looking for it not to sum up the
product numbers, just yield one sum for each product number. Help please!!!


  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Combining same data in multiple rows

A pivot table can get you there in a matter of seconds

Assuming the table posted is in cols A & B,
headers in row1, data from row2 down

Steps (in xl2003)
Select any cell within the data,
click Data PivotTable...
Click NextNext
In step 3 of the wiz, click Layout
Drag n drop "Prod#" within ROW area
Drag n drop "Product sales" within DATA area
(It'll appear as Sum of Product sales)
Click OK Finish. That's it!

Hop over to the pivot in the new sheet to the left,
where it'll show all the "Prod#"'s in the left col,
with corresponding Sum of Product sales next to it.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:16,700 Files:356 Subscribers:53
xdemechanik
---
"Susienak" wrote:
I have two columns of information: Column A has a number that represents a
product and Column B shows how many times that product was sold. I combined
the data from multiple worksheets so the product numbers repeat:

Prod# Product sales
610 3
611 1
612 5
612 1
612 3
613 5
613 1
613 2
614 1
614 4
614 1
622 1
622 3
622 2
623 2
623 12
623 2
624 2

How do I combine the product numbers in Column A to give me the total
products sold in Column B. Ex: Product#623 was sold twice today from one
website, 12 times from another website, and twice from yet another website
yielding 16 sales for product #623.

My list contains 30,000 numbers and Im looking for it not to sum up the
product numbers, just yield one sum for each product number. Help please!!!


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Combining same data in multiple rows

Hi Max,

I tried Pivot table the other day but I was missing something that I didnt
figure out until today. 2007 works a little different. I highighted the two
columns, went to the insert tab, clicked pivot table and ok, then dragged the
prod# to the ROWS field on the bottom right and dragged the product sales to
the VALUES field on the bottom right... BUT that automatically gives a
"count".. it counts how many times the Product number appears in the product
# row, it doesnt sum up the products sold... SO... on the bottom right under
VALUES you click on the drop down arrow and you can change the field settings
from a count to a sum... and that worked perfectly!

Thanks...

"Max" wrote:

A pivot table can get you there in a matter of seconds

Assuming the table posted is in cols A & B,
headers in row1, data from row2 down

Steps (in xl2003)
Select any cell within the data,
click Data PivotTable...
Click NextNext
In step 3 of the wiz, click Layout
Drag n drop "Prod#" within ROW area
Drag n drop "Product sales" within DATA area
(It'll appear as Sum of Product sales)
Click OK Finish. That's it!

Hop over to the pivot in the new sheet to the left,
where it'll show all the "Prod#"'s in the left col,
with corresponding Sum of Product sales next to it.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:16,700 Files:356 Subscribers:53
xdemechanik
---
"Susienak" wrote:
I have two columns of information: Column A has a number that represents a
product and Column B shows how many times that product was sold. I combined
the data from multiple worksheets so the product numbers repeat:

Prod# Product sales
610 3
611 1
612 5
612 1
612 3
613 5
613 1
613 2
614 1
614 4
614 1
622 1
622 3
622 2
623 2
623 12
623 2
624 2

How do I combine the product numbers in Column A to give me the total
products sold in Column B. Ex: Product#623 was sold twice today from one
website, 12 times from another website, and twice from yet another website
yielding 16 sales for product #623.

My list contains 30,000 numbers and Im looking for it not to sum up the
product numbers, just yield one sum for each product number. Help please!!!


  #5   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Combining same data in multiple rows

Glad it helped you to find the solution in your xl2007 <g

Thanks for posting the steps in xl2007,
which benefits many other readers facing the same issue

Btw, do take a moment to press the Yes buttons (like the one below) from
where you're reading this, for all responses which helped answer your query.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:16,700 Files:356 Subscribers:53
xdemechanik
---
"Susienak" wrote:
Hi Max,

I tried Pivot table the other day but I was missing something that I didnt
figure out until today. 2007 works a little different. I highighted the two
columns, went to the insert tab, clicked pivot table and ok, then dragged the
prod# to the ROWS field on the bottom right and dragged the product sales to
the VALUES field on the bottom right... BUT that automatically gives a
"count".. it counts how many times the Product number appears in the product
# row, it doesnt sum up the products sold... SO... on the bottom right under
VALUES you click on the drop down arrow and you can change the field settings
from a count to a sum... and that worked perfectly!

Thanks...


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
combining data from different rows into 1 column Jim Linnenburger Excel Discussion (Misc queries) 0 October 25th 07 05:26 PM
Combining rows with similar data robertlewis Excel Discussion (Misc queries) 4 January 27th 07 06:19 PM
Combining rows of like data? Juggernaut Excel Worksheet Functions 6 September 19th 06 03:03 AM
combining multiple rows of data into one single row of data myersjl Excel Worksheet Functions 0 March 30th 06 10:39 PM
combining multiple rows into 1 record ccrydr Excel Worksheet Functions 3 February 14th 06 06:45 PM


All times are GMT +1. The time now is 05:30 AM.

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

About Us

"It's about Microsoft Excel"