Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#334586 - 29/06/2010 11:49 Combine Excel worksheets
msaeger
carpal tunnel

Registered: 23/09/2000
Posts: 3608
Loc: Minnetonka, MN
I have several Excel worksheets that consist of three columns description, part number, and quantity. I want to combine them all into one worksheet so that quantity's get added together for rows with the same part numbers (bad description probably).

Can anyone tell me how to do it ? Compare and merge workbooks will not work because they are not the same worksheet (unless I am doing it wrong)
_________________________

Matt

Top
#334587 - 29/06/2010 11:56 Re: Combine Excel worksheets [Re: msaeger]
tahir
pooh-bah

Registered: 27/02/2004
Posts: 1919
Loc: London
Can you place them as worksheets in the same workbook?

Top
#334590 - 29/06/2010 12:17 Re: Combine Excel worksheets [Re: tahir]
msaeger
carpal tunnel

Registered: 23/09/2000
Posts: 3608
Loc: Minnetonka, MN
They are all in one workbook now.
_________________________

Matt

Top
#334592 - 29/06/2010 13:06 Re: Combine Excel worksheets [Re: msaeger]
Shonky
pooh-bah

Registered: 12/01/2002
Posts: 2009
Loc: Brisbane, Australia
VLOOKUP should do it.

Are the rows in each sheet unique? i.e. each part number only appears once in each sheet?

Lookup a part number from one sheet in the other and copy over the quantity. Add with others and done.

Not perfect, but might be enough for you.
_________________________
Christian
#40104192 120Gb (no longer in my E36 M3, won't fit the E46 M3)

Top
#334593 - 29/06/2010 13:06 Re: Combine Excel worksheets [Re: msaeger]
tahir
pooh-bah

Registered: 27/02/2004
Posts: 1919
Loc: London

Top
#334596 - 29/06/2010 13:31 Re: Combine Excel worksheets [Re: tahir]
tahir
pooh-bah

Registered: 27/02/2004
Posts: 1919
Loc: London
Does consolidate do this? (never used it, just noticed it)

Top
#334620 - 29/06/2010 19:35 Re: Combine Excel worksheets [Re: msaeger]
Tim
veteran

Registered: 25/04/2000
Posts: 1529
Loc: Arizona
One of the guys in my office (different group) uses Pivot Tables for exactly this sort of thing. In 2007 you create the pivot table and then just drag the data from a list on the side to it and it adds the quantites based on part number automatically (and pretty damn quickly).

Sorry I can't be more help than that, but yesterday was the first time I even saw a Pivot Table.

Top
#334627 - 30/06/2010 05:48 Re: Combine Excel worksheets [Re: Tim]
peter
carpal tunnel

Registered: 13/07/2000
Posts: 4180
Loc: Cambridge, England
Pivot Tables are nature's way of telling you that you should have used a relational database in the first place.

Peter

Top