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

Determining the Number of Pages in Your Document

If your macro needs to know how many pages are in your document, you can use the Information method to get the desired info. ...

Discover More

Fitting Your Text In a Table Cell

Got some text you absolutely must fit on a single line in a table cell? Then you'll appreciate this rather esoteric setting ...

Discover More

Noting a False Zero On a Chart

When creating charts that will be used by other people, you may need to take some liberties with the presentation of your ...

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)

Creating Files with Mail Merge

When you use mail merge to create a document that incorporates all your data source records, you end up with a large document ...

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 with ...

Discover More

Data Source File in Word 2003

The security features introduced in Word 2003 resulted in a change in the dialog boxes you see when opening mail-merge source ...

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 5 + 0?

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.