PC Review


Reply
Thread Tools Rate Thread

Combining equal rows

 
 
ceab
Guest
Posts: n/a
 
      26th Sep 2007
I have a fairly large file with about 10000 rows.
I need to comine the rows with equal product numbers and add the amounts of
these so that any product number only occurs once.
The product description can be left out if it makes it easier.
Are there any programs that can do this, or a script?

What I have now:
Product nr. Product descr. Amount

12345 Gasket 45 15
12345 Gasket 45 20
12111 Bearring 1 5
12333 Bearring 2 3
12311 Bearring 1 4

The result I want:
Product nr. Product descr. Amount

12345 Gasket 45 35
12111 Bearring 1 9
12333 Bearring 2 3

Any help much appreciated!


 
Reply With Quote
 
 
 
 
=?Utf-8?B?T3NzaWVNYWM=?=
Guest
Posts: n/a
 
      26th Sep 2007
I suggest that you look into using a pivot table. Some people find them a
little overwhelming at the start but they are certainly worth the effort to
master them.

Regards,

OssieMac


"ceab" wrote:

> I have a fairly large file with about 10000 rows.
> I need to comine the rows with equal product numbers and add the amounts of
> these so that any product number only occurs once.
> The product description can be left out if it makes it easier.
> Are there any programs that can do this, or a script?
>
> What I have now:
> Product nr. Product descr. Amount
>
> 12345 Gasket 45 15
> 12345 Gasket 45 20
> 12111 Bearring 1 5
> 12333 Bearring 2 3
> 12311 Bearring 1 4
>
> The result I want:
> Product nr. Product descr. Amount
>
> 12345 Gasket 45 35
> 12111 Bearring 1 9
> 12333 Bearring 2 3
>
> Any help much appreciated!
>
>
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      26th Sep 2007
You could sort your data by number, then description, then use data|subtotal and
subtotal (twice) by the description and number. Then use the outlining symbols
to hide the details.

Or you could use data|pivottable to get a nice summary report of your data.

Select your range A1:Cxxx
Data|pivottable
follow the wizard until you get to a step that has a button named Layout.
Click that Layout button

Drag the number to the row field
drag the description to the row field
drag the amount to the data field (it should say Sum of)

And finish up.


ceab wrote:
>
> I have a fairly large file with about 10000 rows.
> I need to comine the rows with equal product numbers and add the amounts of
> these so that any product number only occurs once.
> The product description can be left out if it makes it easier.
> Are there any programs that can do this, or a script?
>
> What I have now:
> Product nr. Product descr. Amount
>
> 12345 Gasket 45 15
> 12345 Gasket 45 20
> 12111 Bearring 1 5
> 12333 Bearring 2 3
> 12311 Bearring 1 4
>
> The result I want:
> Product nr. Product descr. Amount
>
> 12345 Gasket 45 35
> 12111 Bearring 1 9
> 12333 Bearring 2 3
>
> Any help much appreciated!


--

Dave Peterson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel count rows and add equal rows when matched donlincolnpcr General Software 0 7th Mar 2010 11:42 AM
How to set equal width columns and equal height rows in a table? KikoJack Microsoft Word Document Management 1 10th Feb 2009 05:06 PM
Hiding rows which equal zero sum value Mike Microsoft Excel Misc 3 25th May 2008 07:38 PM
Rows which are equal Neo Microsoft Excel Misc 7 6th Nov 2006 10:42 PM
Hide rows if they equal... Rutgers_Excels Microsoft Excel Misc 4 7th May 2004 09:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:35 PM.