Creating a Mail Merge Data File

Written by Allen Wyatt (last updated November 4, 2017)
This tip applies to Word 97, 2000, 2002, and 2003


1

If you plan on printing documents that merge information from a data file, such as form letters, you will need to create the data file in such a way that Word knows how to process it. This data can be in a database program, in the Excel spreadsheet program, or directly in Word. If you are creating a simple, one-time mail merge document, chances are good that you will be using data that you put in a Word document.

Basically, the Word data file must have a header record and as many data records as you desire. The header record indicates the field names to be assigned to the fields in each record. The names in this header record correspond to the field names used in your master document. Each field in each data record of the file must correspond to one of the header fields. For instance, consider the following excerpt from a data file.

title first middle last
John Q. Public
Jean R. Smith
Wilma  Davis
Walter T. Avery

The first record indicates the field names; it is the header record. The other four records are the data records. Notice, also, that the third data record does not list any data corresponding to the data field named middle. As you create these data files, you can place the information in a Word table so the data is easier to visualize and work with. Each record will occupy a row of the table, and each field will occupy a cell in the row.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (1369) applies to Microsoft Word 97, 2000, 2002, and 2003.

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

Splitting Table Cells

When formatting tables, you can both merge and split cells. Here's a couple of ways you can easily perform the latter ...

Discover More

Stopping Smart Tags from Being Saved

Don't want Smart Tag information saved with your document? It's easy to make sure that Word doesn't save it, as described ...

Discover More

Getting Rid of Leading Zeros in a Number Format

Excel, by default, displays numbers with a leading zero, if they are less than 1. Here's how you can get rid of those ...

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)

Conditionally Adding a Period in a Mail Merge

When merging data into a Word document, you may want to add information to the document based on an evaluation of what is ...

Discover More

Mail Merge and Data Source Documents become Unattached

When you create a mail merge document, you attach it to a data source that is the basis for the information to be merged ...

Discover More

Getting Rid of Mail Merge Section Breaks

When you create a group of documents from a merge file, Word normally inserts section breaks between iterations of the ...

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?

2017-11-04 12:05:53

Sheldon Hoffman

In the mail merge section using a Word document the data example columns under the heading line are not lined up with their respective headings.


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.