Article ID: 181731 - Last Review: November 1, 2006 - Revision: 1.2 WD98: Using Mail Merge to Create a List Sorted by Category
This article was previously published under Q181731 On This PageSUMMARY
You can use the Mail Merge feature in Word to create a list of data sorted
and separated by a category. This article contains instructions and a
sample you can use to create such a list.
MORE INFORMATIONSetting Up the Data FileSort your data file so that all records with the same value for the key field (category--the field upon which you base the sort) are together, as shown in the following sample data file. The following sample list is sorted by the CITY field (CITY is the key field in this example):
CITY EMPLOYEE SALES
Atlanta Smith $3,000
Atlanta Gates $50,000
Atlanta Henderson $10,000
Houston Jones $8,000
Houston Kelley $9,000
Houston Peterson $0
Setting Up the Main DocumentNOTE: A Paragraph Mark in the following example is designated as <P>. Do not type the <P>, instead press RETURN.To set up your main document as a catalog, follow these steps:
Forcing Each New Category to a New PageThe key field in this example is {Mergefield City}. When the value of City changes in the data file to a different city, then a new page is added to the merged results and the merge is continued at the top of the next page.The fields laid out in this example will produce a catalog listing on separate pages as follows:
Atlanta
Smith $3,000 Gates $50,000 Henderson $10,000 ----------------------------Page Break-------------------------------- Houston Jones $8,000 Kelley $9,000 Peterson $0 Formatting the Key FieldThe key field in this example is {Mergefield City}. To format the results of the {Mergefield City} as all capital letters, you can use the formatting switch of \* Upper.
ATLANTA
For more information about general field formatting, click Contents And
Index on the Help menu (or on the Balloon Help menu if you are using a
version of the Macintosh operating system earlier than 8.0), click the
Index button in MS Word Help, type the following text
Smith $3,000 Gates $50,000 Henderson $10,000 HOUSTON Jones $8,000 Kelley $9,000 Peterson $0 fields, formatting
and then click Show Topics. Select the "Apply formatting to information
inserted by fields" topic, and click Go To. If you are unable to find the
information you need, ask the Office Assistant.
REFERENCES
For additional information, please see the following article in the
Microsoft Knowledge Base:
141922
(http://support.microsoft.com/kb/141922/EN-US/
)
WD: How to Start a Mail Merge
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email

Back to the top
