#1
|
|||
|
|||
Populating Tables with data when available only - Using Mail merge
Hi,
I am trying to create a table where I show the Name of the PORTFOLIO on one column, the ASSET CLASSES on the second column and TARGET value for each asset class. I have attached the data, and the output I want from a mail merge on a word document. The challenge I have with my data is some PORTFOLIOS do not have all the ASSET CLASSES and their TARGET VALUE. How can I run a mail merge in a way that the table will not show ASSET CLASSES with ZERO values? If you see the excel spreadsheet you will understand what I am referring to. How can I overcome this to effectively carry out a mail merge as shown in the output sheet? Thanks! John |
#2
|
||||
|
||||
You can use Word's Catalogue/Directory Mailmerge facility for this (the terminology depends on the Word version). To see how to do so with any mailmerge data source supported by Word, check out my Microsoft Word Catalogue/Directory Mailmerge Tutorial in the 'Sticky' thread at the top of this forum:
Microsoft Word Catalogue/Directory Mailmerge Tutorial The tutorial covers everything from list creation to the insertion & calculation of values in multi-record tables in letters. Do read the tutorial before trying to use the mailmerge document included with it. Since the tutorial document includes working field codes for all of its examples, most of the hard work has already been done for you - you should be able to do little more than copy/paste the relevant field codes into your own mailmerge main document, substitute/insert your own field names and adjust the formatting to get the results you desire. For some worked examples, see the attachments to the posts at: mail merge with duplicate names but different dollar amounts Access to Word, Creating a list from multiple records Another option would be to use a DATABASE field in a normal ‘letter’ mailmerge main document and a macro to drive the process. An outline of this approach can be found at: Many to one email merge using tables - Microsoft Community Conversely, if you're using a relational database or, Excel workbook with a separate table with just a single instance of each of the grouping criteria, a DATABASE field in a normal ‘letter’ mailmerge main document could be used without the need for a macro. An outline of this approach can be found at: Mail Merge - To a Word Table on a Single Page - Microsoft Community For some working examples, see: Mail Merge: Using One Excel File with Multiple Sheets Merge excel list into Word Receipt Alternatively, you may want to try one of the Many-to-One Mail Merge add-ins, from: Graham Mayor at http://www.gmayor.com/ManyToOne.htm; or Doug Robbins at https://onedrive.live.com/?cid=5AEDC...43615E886B!566
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mail Merge does not split tables if entry has a number in front | B-Man | Mail Merge | 5 | 05-19-2019 07:25 AM |
Mail Merge Field Not Populating | JennEx | Mail Merge | 3 | 05-10-2015 09:30 PM |
Is data merge and mail merge the same thing? | ikearns | Mail Merge | 1 | 09-12-2014 03:53 AM |
Tables not populating properly from code | DepricatedZero | Word VBA | 1 | 06-04-2013 06:22 AM |
mail merge from access query or two tables | peter | Mail Merge | 0 | 08-24-2010 05:32 PM |