Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 137
Default Merging duplicate lines in a Database

I have a rather large database containing column headers as follows

Date Part Number Qty CD Unit Price Cost Total Price

Within this database are dupliacte part number lines, some with different
values.

For example

Date Part Number Qty CD Unit Price Cost Total Price
06/09/1996 0851FJ1 1 FN $3500.00 $3000.00 $3500.00
06/09/1996 0851FJ1 1 FN $2500.00 $2000.00 $2500.00
06/09/1996 10164-2 3 FN $1500.00 $1000.00 $1500.00
06/09/1996 10164-2 4 FN $1450.00 $1200.00 $1450.00

Is there any way I can merge the duplicate lines, keeping the unique part
number, and CD, but combining the quantity and possibly obtaining an average
cost and price of the parts?

Example:

Date Part Number Qty CD Unit Price Cost Total Price
06/09/1996 0851FJ1 2 FN $3000.00 $2500.00 $3000.00
06/09/1996 10164-2 7 FN $1475.00 $1100.00 $1475.00

Any help/advice anyone out there can provide would be greatly appreciated.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Merging duplicate lines in a Database

Hi Darren,
Do a Pivot table, then you change your unit price, cost and total in the
setting field to average and you will get the results you are looking for
If the answer helped you please rate it
"Darren" wrote:

I have a rather large database containing column headers as follows

Date Part Number Qty CD Unit Price Cost Total Price

Within this database are dupliacte part number lines, some with different
values.

For example

Date Part Number Qty CD Unit Price Cost Total Price
06/09/1996 0851FJ1 1 FN $3500.00 $3000.00 $3500.00
06/09/1996 0851FJ1 1 FN $2500.00 $2000.00 $2500.00
06/09/1996 10164-2 3 FN $1500.00 $1000.00 $1500.00
06/09/1996 10164-2 4 FN $1450.00 $1200.00 $1450.00

Is there any way I can merge the duplicate lines, keeping the unique part
number, and CD, but combining the quantity and possibly obtaining an average
cost and price of the parts?

Example:

Date Part Number Qty CD Unit Price Cost Total Price
06/09/1996 0851FJ1 2 FN $3000.00 $2500.00 $3000.00
06/09/1996 10164-2 7 FN $1475.00 $1100.00 $1475.00

Any help/advice anyone out there can provide would be greatly appreciated.

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 and merging lines Dawn Excel Discussion (Misc queries) 1 January 3rd 08 03:44 PM
Merging data in multiple rows where the first cell has duplicate d Big Red Excel Discussion (Misc queries) 3 June 12th 07 09:25 AM
merging information from partial duplicate rows Todd Excel Discussion (Misc queries) 3 August 25th 06 10:02 PM
MERGING COLUMNS WITH DUPLICATE INFO. PatrickL Excel Worksheet Functions 2 August 19th 05 02:39 PM
merging lines Carrie Excel Worksheet Functions 2 June 11th 05 10:45 PM


All times are GMT +1. The time now is 04: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"