Creating a Mail Merge Data File

by Allen Wyatt
(last updated February 11, 2017)

4

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

Reducing the Curl in Printed Documents

Have you ever printed out a document, only to have the pages curl very badly as they come out of the printer? There's a ...

Discover More

Determining How Much Space the Files in a Folder Require

Want to know how much space is required by all the files in a folder? There are a couple of very easy ways to get this ...

Discover More

Creating a Lorem Ipsum Tool

When editing, you may need random placeholder text inserted in your document. Word provides a couple of ways you can do that, ...

Discover More

Learning Made Easy! Quickly teach yourself how to format, publish, and share your content using Word 2013. With Step by Step, you set the pace, building and practicing the skills you need, just when you need them! Check out Microsoft Word 2013 Step by Step today!

More WordTips (menu)

Checking Your Data File

When you get ready to merge a document with a data source, you'll want to make sure that everything is "as expected" before ...

Discover More

Beginning a Mail Merge

Performing a mail merge can be intimidating to some people. It needn't be; Word provides step-by-step wizards that lead you ...

Discover More

Merging and Printing

When you merge information into a document, Word provides two different ways you can create your output. Here's an overview ...

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}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 8Mpixels. 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 eight minus 3?

2017-02-12 13:42:16

mike

won't this mess up since no record has a title and all the data is therefore in the wrong field?


2012-12-11 10:09:08

Val Arnott

When I merge the excel spreadsheet with a word document not all of the fields show up on the list. Is there a limit to the number of fields that I can merge or did I do something wrong?


2012-06-24 03:26:00

Peter Mackin

Lawrence, The problem is that the title fields are all blank and the formatting of the data "table" is not correct. (Obviously, John and Wilma are not titles, they are first names.) If the title fields were populated, then the statement would be correct.

Peter Mackin


2012-06-23 09:12:55

Lawrence H. Lund

This statement appears to be wrong.

"Notice, also, that the third data record does not list any data corresponding to the data field named middle."


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.

Newest Tips
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.