Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-14-2015, 04:48 AM
macropod's Avatar
macropod macropod is offline Clean up messy data in Excel postal address list and edit duplicates to Mr. and Mrs. Windows 7 64bit Clean up messy data in Excel postal address list and edit duplicates to Mr. and Mrs. Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You would do best to pre-process you data, by adding extra columns for the names of people living at the same address, then consolidating them into a single record. During that process you could also clean up the formatting. This could probably be done via macro (getting rid of excess spaces, for example, it a trivial undertaking), but it's impossible to say for sure without seeing the data. You can then use the field coding logic in in the Mailmerge Tips and Tricks threads at the top of this forum (https://www.msofficeforums.com/mail-...ps-tricks.html) to handle the addressing of households with the same or different surnames.

Alternatively, you could use Word's Catalogue/Directory Mailmerge facility (the terminology depends on the Word version) to group the data by address, but the result probably wouldn't be ideal since each addressee's name would at least end up on a separate line. If that's OK, though, to see how to do so with any mailmerge data source supported by Word, check out my Microsoft Word Catalogue/Directory Mailmerge Tutorial at:
http://windowssecrets.com/forums/sho...merge-Tutorial
or:
http://www.gmayor.com/Zips/Catalogue%20Mailmerge.zip
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.

The field coding for this is complex. However, 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:
https://www.msofficeforums.com/mail-...html#post23345
https://www.msofficeforums.com/mail-...html#post30327
http://windowssecrets.com/forums/sho...l=1#post928391

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 http://bit.ly/1hduSCB

Similarly, field switches in Word can be used to reformat the data (e.g. changing upper-case blocks to Proper case, etc.) but you can only push this just so far - you can delete extraneous spaces, for example).
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Tags
address list, cleanup, data merge



Similar Threads
Thread Thread Starter Forum Replies Last Post
Populate Word Drop-down list with Excel column then auto fill form fields with Excel data Faldinio Word VBA 7 10-19-2014 06:03 AM
Clean up messy data in Excel postal address list and edit duplicates to Mr. and Mrs. VBA Code for clean all data from ms word document egyp7 Word VBA 4 05-16-2014 03:59 PM
Any easy way to clean up bulleted list? New Daddy Word 2 08-29-2013 06:00 AM
Clean up messy data in Excel postal address list and edit duplicates to Mr. and Mrs. Outlook 2007 - Bad Address List Data? nickolasj80 Outlook 1 06-17-2011 12:23 PM
Macro to remove duplicates in Refrences list HowardC Word VBA 0 05-20-2010 09:57 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:20 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft