Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How do I merge two different excel workbooks

We have a fairly large amount of data that must be sifted through monthly to
create some of our financial reports. We need to combine sales data for each
item this year with sales data for each item last year. This years data
comes from a pivot table that accesses the database. To work with the values
we copy and paste the data into a new workbook. Last years data is saved in
another workbook. Complicating matters is the fact that since last year we
have started selling some new lines and have gotten rid of some oldones.
Thus the product lines won't match perfectly. We need to bring last years
data into this year and have it put itself in the column we specify while
matching itself to rows that allready exist, skipping rows that don't exist
in last years data, and creating rows for lines that existed last year but
not this year. I appreciate all your help on this matter. Thank you all for
you time.

Jesse
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How do I merge two different excel workbooks


last year.......................................thisyea r
A....55..........................................A .....333
B....77........................................... D.....444
C....88..........................................A ......666

COMBINE THE 2


A....55.......YEAR1
B....77.......YEAR1
C....88......YEAR1
A.....333.....YEAR2
D.....444......YEAR2
A......666......YEAR2

Now use a sumproduct formula

=sumproduct(($a$1:$a$6="A")*($c$1:$c$6="year2")*($ b$1:$b$6))

this gives you the A totals for year2 = 999

you can make a table with A,B,C,D IN CELLS A2:A5 AND YEAR1 IN CELL B1
AND YEAR2 IN CELL C1. Then let your sumproduct formula reference the
row and column headings to pull all the totals for all the years. Much
better, in my opinion, than a pivot table.

in B2 the formula would change by the A in the first part of the
formula would be replaced by $a2, year1 by b$1 and year2 by c$1

now copy it across and down


--
robert111
------------------------------------------------------------------------
robert111's Profile: http://www.excelforum.com/member.php...o&userid=31996
View this thread: http://www.excelforum.com/showthread...hreadid=574143

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How do I merge two different excel workbooks

Robert,

Thank you for your response. We currently do something to that effect. The
problem is with 8000 lines it is labor intensive. We don't need the sum we
just need to bring the data in and have it line up. Thus far we have went
through and added lines manually so that when the data is copied in it will
match. We were hoping there would be a more automatic way to do that. Some
way to bring the data in and have it compare the two sets adding lines where
neccesary. Thanks again for your response.

Jesse

"Jesse R." wrote:

We have a fairly large amount of data that must be sifted through monthly to
create some of our financial reports. We need to combine sales data for each
item this year with sales data for each item last year. This years data
comes from a pivot table that accesses the database. To work with the values
we copy and paste the data into a new workbook. Last years data is saved in
another workbook. Complicating matters is the fact that since last year we
have started selling some new lines and have gotten rid of some oldones.
Thus the product lines won't match perfectly. We need to bring last years
data into this year and have it put itself in the column we specify while
matching itself to rows that allready exist, skipping rows that don't exist
in last years data, and creating rows for lines that existed last year but
not this year. I appreciate all your help on this matter. Thank you all for
you time.

Jesse

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
suddenly my excel workbooks are "shared workbooks" Maggie's mom Excel Discussion (Misc queries) 1 August 28th 05 09:20 PM
How to merge various workbooks into 1 worksheet in Excel Sharm Excel Discussion (Misc queries) 1 August 22nd 05 08:10 AM
Can I merge workbooks in Excel with fewer records in 2nd workbook? Flatiron Buffalo Excel Discussion (Misc queries) 2 April 11th 05 09:32 PM
Trying to merge two excel worksheets Matt Carter Excel Discussion (Misc queries) 0 April 8th 05 03:11 PM
How do I do an excel merge like a word mailmerge with another exc. jaewon223 Excel Discussion (Misc queries) 0 February 28th 05 05:01 PM


All times are GMT +1. The time now is 12:11 PM.

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

About Us

"It's about Microsoft Excel"