“Eventually, all things merge into one, and a river runs through it.”
April 6, 2006 3:32 PM
Subscribe
Complex Excel to Word merge question is the
Its going to be difficult to explain this clearly, so bear with me.
I have two Excel files I need to merge into one (long) Word document.
The first file is a straightforward merge: Names and addresses and such. Each one of these (lets call them the Customer Records) are tagged with a specific, unique, numeric ID. There are 400+ customer records.
The second file is more complex: It is a list of purchases made by the customers. Some customers have made dozens of purchases, some only one or two. Each customer purchase has the unique customer record ID attached, plus other information. There are 3000+ purchase records for these 400+ customer records.
The output that I want is:
A single customer's contact information and buying history on a single word document page, then a page break, the next customer, and so on for 400+ pages.
So imagine
customer ID
Name
Address
email
telephone
comment
purchase 1 data (date, amount, product)
purchase 2 data (date, amount, prodcut)
purchase 3 data (date, amount, product)
[page break]
Next customer record
... and so on -- but remember that some customers have 20+ purchases and some have only one.
I'm all good with the Name, address, merge part -- the part that is stumping me getting only the purchase data that is tied to that specific cusomer ID on the page I want it.
Is there some way within the Word Merge function to tie the Customer ID in the name/address record to the Customer IDs listed in the purchase record, so that only the customer purchases that are tied to that customer ID appear on each page? In a database program I would do this by creating a form with a repeating pannel, but that isn't an option here.
My predecessor in this job, who was largely incompetent in may respects, managed to create an output like this, and I am taking a lot of abuse for not being able to replicate her results. Unfortunately, I only have hard copy of her output, not any electronic copy I can reverse engineer.
Its possible that she did the whole thing by hand, as a copy/paste back and forth from Word to Excell and back again, but the sales director swears that "she just pressed a button" and it all merged together.
I can change the Excel to .txt or .dbf or other formats if I need to, but the output must be in a Word document.
I'm going to a meeting, but will reply to any questions in a few hours when I return.
Thanks for your help!
posted by anastasiav to computers & internet (10 comments total)
You would then need to lay out your data source so each row is like Name, Address etc, Purchase1_field1, Purchase1_field2 ... Purchase1_fieldn, Purchase2_field1, etc. This may be a pig, but you may be able to do a lot of it with a few paste-special-transposes.
posted by pompomtom at 4:54 PM on April 6, 2006