5.1 Mail Merge Concepts and Data Sources

Key Takeaways

  • Mail merge is a workflow that combines a static main document template with a dynamic data source to produce multiple personalized outputs efficiently.
  • The data source (mailing list) is structured as vertical columns (fields) and horizontal rows (records).
  • Common data sources include Excel spreadsheets, Access databases, CSV files, Outlook contacts, and Word tables.
Last updated: July 2026

Mail Merge Concepts and Data Sources

The Mail Merge process is a core utility in modern word processing software, including applications like Microsoft Word and LibreOffice Writer. It is designed to automate the production of personalized documents by combining a single template with a structured database. Rather than manually typing individual letters or labels for a large group of recipients, a mail merge combines a static main document (the template) with a dynamic data source (the mailing list) to generate individual output documents. This feature is heavily tested in the International Computer Driving Licence (ICDL) Documents module because it represents one of the most significant productivity-enhancing tools available to administrative professionals.

The Mail Merge Process Workflow

To understand mail merge, it is helpful to conceptualize it as a pipeline that takes two distinct inputs and merges them into a single, unified output.

  1. Main Document: This is the template containing the constant elements—such as boilerplate text, graphics, corporate headers, and return addresses—that remain identical across all generated files. It also contains placeholders called merge fields, which instruct the word processor where to insert variable data.
  2. Data Source: This is the structured file containing the variable information (like recipient names, street addresses, and account numbers).
  3. Merged Documents: The final output generated by executing the merge. The word processor reads the data source record-by-record, replaces the merge fields in the main document with the corresponding values, and outputs a personalized document for each record.

Core Components: The Main Document

The main document acts as the blueprint for your merge. Before starting the merge, you must determine what type of document you are creating. Word processors support several main document formats:

  • Form Letters: Personalized letters sent to multiple recipients. The body of the letter is identical, but the names, addresses, and salutations are unique to each individual.
  • Mailing Labels: Templates designed to print recipient addresses onto sheets of self-adhesive labels. The layout consists of a grid matching the physical dimensions of the label sheet.
  • Envelopes: Custom layouts configured for standard paper envelope sizes (e.g., Size 10 or DL). The layout includes defined areas for the return address and delivery address.
  • Directories: A continuous list of records printed on the same page, commonly used to generate phone directories, product catalogs, or inventory lists rather than separate pages for each record.
  • E-mail Messages: Electronic mail documents where the output is transmitted directly through an integrated mail client rather than printed on paper.

Core Components: The Data Source

The data source (also referred to as a mailing list) is a repository of structured information. In word processing terms, a data source is organized into rows and columns:

  • Field: A single category of information represented by a vertical column. Each field has a unique header name (e.g., First_Name, Postal_Code, Email_Address).
  • Record: A complete set of related information for a single entity, represented by a horizontal row (e.g., all contact details for a customer named Jane Doe).
+------------+-----------+---------------------+
| First_Name | Last_Name | City                |  <-- Fields (Column Headers)
+------------+-----------+---------------------+
| Jane       | Doe       | London              |  <-- Record 1 (Row 1)
| John       | Smith     | Paris               |  <-- Record 2 (Row 2)
+------------+-----------+---------------------+

Word processors can connect to several external file types to retrieve data:

Data Source TypeFile ExtensionsDescription & Best Use Case
Spreadsheets.xlsx, .xls, .odsMicrosoft Excel or LibreOffice Calc sheets. Very common, easy to organize in grids.
Databases.accdb, .mdbMicrosoft Access databases. Best for large, query-based datasets with complex relations.
Flat Text Files.csv, .txtComma-Separated Values (CSV) files. Highly portable, plain text files where data is separated by commas or tabs.
E-mail ContactsN/AMicrosoft Outlook Contacts. Directly integrates email folders into the mail merge interface.
Word Tables.docx, .docA standard table created within another word document. Best for simple, self-contained lists.

Starting the Mail Merge Wizard

To make mail merge accessible, modern word processors offer a step-by-step assistant called the Mail Merge Wizard. While advanced users can perform a merge manually, the wizard guides beginners through the configuration sequence.

To start the wizard in Microsoft Word:

  1. Navigate to the Mailings tab on the ribbon interface.
  2. Click the Start Mail Merge drop-down button.
  3. Select Step-by-Step Mail Merge Wizard... from the bottom of the menu.

The wizard opens in a task pane (typically on the right side of the screen) and guides you through six stages:

  1. Select Document Type: Choose between letters, email messages, envelopes, labels, or directory.
  2. Select Starting Document: Decide whether to use the current document, a pre-saved template, or an existing document.
  3. Select Recipients: Connect to an existing list, select from Outlook contacts, or type a new list manually.
  4. Write Your Letter: Insert merge fields, address blocks, and greeting lines into the document.
  5. Preview Your Letters: Review the merged records to ensure there are no layout or formatting issues.
  6. Complete the Merge: Finalize the output by sending it to a new file or directly to a printer.

Connecting a Main Document to a Data Source

Connecting your main document to an existing data source is a critical step. When you link a data source, the word processor reads the column headers and makes them available as merge fields.

Step-by-Step Connection Procedure:

  1. On the Mailings tab, click Select Recipients.
  2. Select Use an Existing List... from the dropdown menu.
  3. A file browser dialog box titled Select Data Source will appear. Navigate to your saved spreadsheet, database, or text file and click Open.
  4. If connecting to a spreadsheet (like Microsoft Excel), a prompt will ask you to select the specific sheet (e.g., Sheet1$) and specify if the first row of data contains column headers. It is vital to check this box so the application treats headers as field names rather than a recipient record.
  5. Once connected, the Mail Merge Recipients dialog box automatically opens.

Managing Recipients:

The Mail Merge Recipients dialog box allows you to refine your mailing list before merging:

  • Sorting: Click on a column header (like Last_Name) to sort records alphabetically or numerically.
  • Filtering: Apply criteria to merge only specific records (e.g., filtering the City field to only include 'London' residents).
  • Excluding Records: Uncheck the checkboxes next to individual names to exclude them from the current merge run without modifying the source file.
Test Your Knowledge

Which of the following describes the function of the main document in a mail merge process?

A
B
C
D
Test Your Knowledge

What is a 'record' within the context of a mail merge data source?

A
B
C
D
Test Your Knowledge

When connecting an Excel spreadsheet as a mail merge data source, why is it important to confirm that the 'first row of data contains column headers'?

A
B
C
D