Please Note: This article is written for users of the following Microsoft Word versions: 97, 2000, 2002, and 2003. If you are using a later version (Word 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Word, click here: Grouping Records in a Mail Merge.

Grouping Records in a Mail Merge

Written by Allen Wyatt (last updated January 16, 2016)
This tip applies to Word 97, 2000, 2002, and 2003


1

Erin wants to do a mail merge using source data that is in an Excel worksheet where it is possible for a given individual to have multiple rows of data. She notes that if she was using SQL she could use "GROUP BY" to make sure that all the records of a given individual were grouped together. She wants to "group" records so she can put all the records for a given individual into a single merge document.

This is not something that can be done with Word's mail merge capabilities. In fact, the merging is rather limited when it comes to such matter, generally taking information as it is fed from the source document. This means that it may be best to examine the source and do any sorting, condensing, and selecting in the workbook before you do the merge. There are numerous ways that you can work with your data, including the removal of duplicate records or using macros to condense duplicate records into a single record. (Full information on some of these methods can be found on the ExcelTips site: http://excel.tips.net .)

The other option is to forego Excel and place your data in a real database program, such as Access. There you can do many types of processing—just as you can with an SQL database—in order to create views of information (queries) that can be used as the source data for a Word mail merge. This would allow you to easily use the GROUP BY capabilities that you seek.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (7451) applies to Microsoft Word 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Word (Word 2007 and later) here: Grouping Records in a Mail Merge.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Using Call to Run VBA Macros

An elegant way to run macros from within macros is to use the Call statement. In order to use it, you need to provide a ...

Discover More

Inserting a Cross-Reference to the First Style on a Page

A common way to set up a header is to have it refer to the first occurrence of a heading on the page. (Think how the ...

Discover More

Automatically Breaking Text

Want to convert the text in a cell so that it wraps after every word? You could edit the cell and press Alt+Enter after ...

Discover More

The First and Last Word on Word! Bestselling For Dummies author Dan Gookin puts his usual fun and friendly candor back to work to show you how to navigate Word 2013. Spend more time working and less time trying to figure it all out! Check out Word 2013 For Dummies today!

More WordTips (menu)

Merging Only a Date from Access

When you are merging data from an Access database, you may get more information than you want, especially when it comes ...

Discover More

Using Merge Fields

When creating a mail merge document, you use merge fields to indicate where the information from each record of your data ...

Discover More

Merging with Two Data Sources

Setting up a Word mail merge to combine a data source with a merge document is easy. But what if you want to use two data ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 2 + 8?

2016-02-12 11:25:59

Morton Wakeland

Actually this can be done. Simply Google mail merge multiple rows. Some guy on UTube give a pretty good explanation but it involves using code in the Word doc. The only thing he does wrong is that he calls curly braces { } brackets which are in fact [ ] Must not have taken advanced math in college.


This Site

Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon interface.

Videos
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.