PC Review


Reply
Thread Tools Rate Thread

Combining and merging duplicate data.

 
 
Darren
Guest
Posts: n/a
 
      27th Nov 2008
I have a list of two columns consisting of part number and quantity, some of
the lines contain duplicate part numbers.

Example

Part Number Qty
311 10
311 5
312 20
313 5
313 5

Is there any way I can merge the duplicate part numbers into one line whilst
combining the quantites to read as follows?

Part Number Qty
311 15
312 20
313 10

Have a very large database to work through and this would make my life a lot
easier :0)
 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      27th Nov 2008
Darren,

A couple of steps.

1. Create your unique list of parts.
Select your parts list, the top row must be a header, then
Data|Filter|Advanced filter
Select copy to another location
Check unique items only
Enter a location to copy to (a single cell) I'm going to use D1
Click OK and you should now have a list of unique items.

2. This in E1 and drag down to get your totals
=SUMIF($A$1:$A$5,D1,$B$1:$B$5)

Mike


"Darren" wrote:

> I have a list of two columns consisting of part number and quantity, some of
> the lines contain duplicate part numbers.
>
> Example
>
> Part Number Qty
> 311 10
> 311 5
> 312 20
> 313 5
> 313 5
>
> Is there any way I can merge the duplicate part numbers into one line whilst
> combining the quantites to read as follows?
>
> Part Number Qty
> 311 15
> 312 20
> 313 10
>
> Have a very large database to work through and this would make my life a lot
> easier :0)

 
Reply With Quote
 
Darren
Guest
Posts: n/a
 
      27th Nov 2008
Cheers for the advice Mike,

I'm not too hot with using excel but whenever I try to use the advanced
filter option it doesn't seem to work.

I highlight the columns and go through the advance filter options but end up
with the same list again minus the first row under the headers. Bit stuck at
the moment.

"Mike H" wrote:

> Darren,
>
> A couple of steps.
>
> 1. Create your unique list of parts.
> Select your parts list, the top row must be a header, then
> Data|Filter|Advanced filter
> Select copy to another location
> Check unique items only
> Enter a location to copy to (a single cell) I'm going to use D1
> Click OK and you should now have a list of unique items.
>
> 2. This in E1 and drag down to get your totals
> =SUMIF($A$1:$A$5,D1,$B$1:$B$5)
>
> Mike
>
>
> "Darren" wrote:
>
> > I have a list of two columns consisting of part number and quantity, some of
> > the lines contain duplicate part numbers.
> >
> > Example
> >
> > Part Number Qty
> > 311 10
> > 311 5
> > 312 20
> > 313 5
> > 313 5
> >
> > Is there any way I can merge the duplicate part numbers into one line whilst
> > combining the quantites to read as follows?
> >
> > Part Number Qty
> > 311 15
> > 312 20
> > 313 10
> >
> > Have a very large database to work through and this would make my life a lot
> > easier :0)

 
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
Combining Duplicate Data bits Microsoft Excel Misc 1 1st Oct 2009 06:38 PM
Merging/Combining workbook data Gemi Microsoft Excel Misc 5 25th Nov 2008 05:15 PM
Combining duplicate row data wagz Microsoft Excel Worksheet Functions 3 3rd Sep 2008 02:25 PM
Merging or Combining 2 columns of data into 1 column Josh Microsoft Excel Misc 1 30th Sep 2003 09:31 PM
Scanning for Duplicate Data in a Column, Merging Data and Finally Removing All Duplicates...? : VB : Microsoft Excel Programming 2 24th Aug 2003 02:22 PM


Features
 

Advertising
 

Newsgroups
 


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