Ruled

Mail merge and printing

The main document, the data source and the merge field; performing a merge for letters and labels; and print settings from preview to duplex.

Mail merge

Mail merge is the process of combining one standard document with a list of data to produce many personalised copies — one per record — without retyping any of them.

The classic case: a college must send the same letter to 500 students, each addressed by name, with that student's roll number and marks. Typing 500 letters is unthinkable; a merge produces them in one operation.

The three components

1. Main document. The letter, label, envelope or certificate. It holds the text common to every copy, plus merge fields marking where the varying data belongs.

2. Data source. A table of the varying data. Its first row holds the field names — Name, Address, RollNo, Marks — and each subsequent row is one record, that is one recipient. The source may be:

  • a Word table
  • an Excel worksheet (the usual and easiest choice)
  • an Access database
  • Outlook contacts
  • a plain text file with values separated by commas or tabs

3. Merge field. A placeholder in the main document, shown in the form «Name», which is replaced at merge time by the value from the current record.

The steps

  1. Prepare the data source first, with clean field names in row 1 and no blank rows.
  2. Open or type the main document.
  3. Mailings → Start Mail Merge and choose the document type — Letters, E-mail Messages, Envelopes, Labels or Directory.
  4. Select Recipients → Use an Existing List, and pick the data file (and the worksheet, if it is an Excel workbook).
  5. Position the cursor and Insert Merge Field for each item of varying data.
  6. Preview Results to step through the records and check that every field lands correctly.
  7. Optionally Edit Recipient List to filter or sort — for example only students of one department, or only those with marks below a threshold.
  8. Finish & Merge, choosing:
    • Edit Individual Documents — produces one long document containing every letter, which can be checked and edited before printing
    • Print Documents — sends straight to the printer
    • Send E-mail Messages — mails each recipient, using an email-address field

Rules and special fields

  • Address Block and Greeting Line insert several fields at once, formatted conventionally.
  • Match Fields tells Word which of your columns corresponds to its idea of "Last Name", "City" and so on.
  • Rules make the letter vary in more than just its values:
    • If…Then…Else — insert "Sir" or "Madam" depending on a Gender field
    • Skip Record If — omit records meeting a condition
    • Merge Sequence # and Merge Record # — numbering
    • Fill-in and Ask — prompt for a value during the merge

Advantages

  • One letter is written and proofread once, so a correction is made once rather than 500 times
  • No transcription errors from retyping names and numbers
  • The recipient list is reusable for the next letter
  • Records can be filtered and sorted at merge time
  • The same data source produces letters, envelopes, labels and emails

Common problems

ProblemCause
Field names appear in the output instead of dataPreview Results is off, or the field was typed by hand instead of inserted
Extra blank lines in an addressEmpty fields in the data; use Address Block, which suppresses them
Numbers or dates formatted wronglyWord takes them raw from the source; add a numeric or date switch to the field
Merge produces one letter, not manyThe document type was not set, or Edit Individual Documents was not chosen
One record missingA blank row in the data source, or a filter left in place

Printing

Print preview

Always look first. File → Print shows the document exactly as it will appear on paper. Most wasted printing is caused by something visible in preview — a stray blank page, a table one column too wide, or a picture over the margin.

Print settings

SettingWhat it controls
PrinterWhich printer, including Microsoft Print to PDF
CopiesHow many
Page rangeAll, current page, a selection, or specified pages such as 1-5, 8, 11-13
Print One Sided / Both SidesDuplex printing, halving paper use
Collated / UncollatedCollated gives 1,2,3 – 1,2,3; uncollated gives 1,1 – 2,2 – 3,3
Orientation and paper sizeOverrides for this print run
Pages per sheetTwo or more document pages printed on one sheet
Scale to paper sizeShrink or enlarge to fit
MarginsQuick adjustment before printing

Collation is the setting most often misunderstood: for 3 copies of a 10-page report, collated gives three complete reports ready to staple, while uncollated gives ten stacks of three identical pages.

Spooling and the print queue

The document is not sent directly to the printer. The OS writes it to a spool file on disk and feeds it to the printer as the printer can accept it — spooling, from Simultaneous Peripheral Operation On-Line. This frees the program immediately, so work can continue while printing proceeds, and lets several documents queue.

The print queue shows waiting jobs, and lets them be paused, resumed, restarted or cancelled. A job cancelled from the queue may still print a page or two, because those pages are already in the printer's own memory.

Step by step

2 procedures

Follow these at the machine. Each numbered step is one action.

Procedure 1

Merging a results letter to 60 students

Task

Produce a letter to each of 60 students giving their name, roll number and total marks, from an Excel list, and print only the letters of students in one department.

  1. Prepare the data source in Excel

    Create a worksheet whose first row holds the field names and nothing else:

    NameRollNoDepartmentTotal
    Anjali RBCA001BCA428
    Vishnu PBCA002BCA391

    Rules that prevent most later trouble: no blank rows, no merged cells, no title above the field names, and field names without spaces. Save and close the workbook — Word cannot always read a file that is open.

  2. Write the main document

    In a new Word document type the letter with the fixed text only, leaving the varying parts for now:

    Dear ,

    Your roll number is and your total for Semester 1 is marks.

    Principal

  3. Start the merge and attach the data

    Mailings → Start Mail Merge → Letters.

    Mailings → Select Recipients → Use an Existing List, choose the Excel file, and select the worksheet. Tick First row of data contains column headers.

  4. Insert the merge fields

    Click after "Dear " and choose Insert Merge Field → Name. Repeat for RollNo and Total in their places. The document now shows

    Dear «Name»,

    Your roll number is «RollNo» and your total for Semester 1 is «Total» marks.

    The fields must be inserted from the ribbon. Typing the angle brackets by hand produces literal text that never merges — the commonest mistake in this exercise.

  5. Filter to one department

    Mailings → Edit Recipient List → Filter. Set Department equal to BCA.

    Only matching records will now merge. The same dialog can sort the records, so the letters come out in roll-number order.

  6. Preview every record before printing

    Preview Results, then step through with the arrows. Check the first record, the last, and any with unusual data — a long name, a missing mark.

    This is where formatting errors show up: a mark appearing as 428.000000 means a numeric switch is needed on the field.

  7. Finish the merge

    Finish & Merge → Edit Individual Documents → All. Word creates a new document containing one letter per matching student, separated by section breaks.

    Choosing this rather than Print Documents lets you scroll through the output, correct anything odd, and save the batch as a record of what was sent — then print with Ctrl+P.

Result

Excel data with field names in row 1 → Start Mail Merge (Letters) → Select Recipients → Insert Merge Field for each item → Filter on Department → Preview Results → Finish & Merge → Edit Individual Documents.

NoteInsert Merge Field always from the ribbon. Typed «angle brackets» look identical and never merge — worth checking first when a merge 'does not work'.

Procedure 2

Printing three collated double-sided copies of a report

Task

Print pages 1 to 12 of a report, three copies, double sided, collated, and check it first.

  1. Open the print settings

    Press Ctrl+P, or File → Print. The preview appears on the right and the settings on the left.

  2. Check the preview before anything else

    Step through every page. Look for a blank final page (usually an empty paragraph at the end — delete it), a table running past the right margin, and pictures that have drifted.

    The total page count is shown beneath the preview. If it is 13 when you expect 12, find out why now rather than after printing 39 sheets.

  3. Set the page range

    In Pages type 1-12. Ranges may be combined — 1-5, 8, 11-13 — and the field is ignored if Print All Pages is selected instead.

  4. Set the number of copies and collation

    Set Copies to 3, and ensure Collated is selected.

    Collated produces three complete reports, pages 1–12 in order, each ready to staple. Uncollated would produce twelve stacks of three identical pages, needing to be sorted by hand.

  5. Turn on double-sided printing

    Choose Print on Both Sides. If the printer supports duplexing it will do this itself. If the option offered is Manually Print on Both Sides, the printer will print all the odd pages, then prompt you to turn the stack over and reinsert it.

    For a document that will be bound, also consider Layout → Margins → Mirror Margins so the inner margin is wider on both sides.

  6. Print one copy first

    Set Copies to 1, print, and inspect the physical output. Only then set it back to 3.

    The cost of one wasted sheet is trivial against 36.

  7. Use the queue if something is wrong

    If the output is wrong, open the print queue from the notification area, right-click the job and choose Cancel. A page or two may still emerge, because they are already in the printer's own memory.

Result

Ctrl+P → check preview → Pages 1-12 → Copies 3, Collated → Print on Both Sides → test one copy → print the rest.

Practice problems

5 with solutions

Work each one on paper first. The full solution — not just the answer — is one click away.

Problem 1Basic

What is mail merge? Name and explain its three components.

Show solution

Mail merge is the process of combining a standard document with a list of data to produce many personalised copies of that document — one for each record in the list — in a single operation.

The three components.

1. Main document. The document containing the text that is the same in every copy — the body of a letter, the layout of a label, the wording of a certificate — together with merge fields marking the places where varying data is to appear. It is written and proofread once.

2. Data source. A table holding the data that varies between copies. Its first row contains the field names (Name, Address, RollNo, Marks) and each following row is one record, that is one recipient. It may be a Word table, an Excel worksheet (the usual choice), an Access database, Outlook contacts, or a delimited text file.

3. Merge field. A placeholder inserted into the main document, displayed as «Name», which is replaced during the merge by the corresponding value from the current record. Fields must be inserted with Insert Merge Field; typing the angle brackets by hand produces ordinary text that never merges.

Applications. Circular letters to students or customers, address labels, envelopes, certificates, mark lists, salary slips, and personalised bulk email.

AnswerCombining a standard document with a data list to produce one personalised copy per record. Components: the main document (fixed text plus merge fields), the data source (field names in row 1, one record per row) and the merge fields (placeholders replaced at merge time).
Problem 2Basic

Explain collated and uncollated printing with an example, and state when each is wanted.

Show solution

Both settings concern the order in which pages emerge when more than one copy of a multi-page document is printed.

Take 3 copies of a 4-page document.

Collated — each complete copy is printed in turn:

Three finished documents come out, each in the right order and ready to staple.

Uncollated — all copies of each page are printed together:

Four stacks emerge, and the pages must be sorted by hand into three documents.

When collated is wanted — almost always for documents to be read or bound: reports, project submissions, question papers, handouts. The printer does the sorting.

When uncollated is wanted — when the pages are to be separated rather than kept together: printing 40 copies of a single-page notice for distribution, or a set of forms where all copies of each form go to a different office. Uncollated is also slightly faster on some printers, since the page image is sent once and printed repeatedly.

A note on single-page documents: the setting makes no difference at all, which is why it goes unnoticed until someone prints thirty copies of a booklet uncollated and spends an afternoon sorting.

AnswerCollated prints complete copies in order (1,2,3,4 | 1,2,3,4) and is wanted for reports and anything to be bound; uncollated prints all copies of each page together (1,1,1 | 2,2,2) and suits pages to be distributed separately.
Problem 3Exam level

Describe the steps in performing a mail merge to send a letter to 100 customers from an Excel list.

Show solution

Step 1 — Prepare the data source. In Excel create a worksheet with the field names in the first row — Name, Address1, City, PIN, Amount — and one customer per row for all 100. Requirements: no blank rows, no title line above the headings, no merged cells, and consistent data in each column. Save and close the workbook.

Step 2 — Create the main document. In Word, type the letter with the text common to every customer, leaving the personalised parts empty for now.

Step 3 — Start the merge. Mailings → Start Mail Merge → Letters.

Step 4 — Select the recipients. Mailings → Select Recipients → Use an Existing List. Choose the Excel file, then the worksheet, and confirm that the first row contains column headers.

Step 5 — Insert the merge fields. Place the cursor where each item belongs and use Insert Merge Field to place «Name», «Address1», «City», «PIN» and «Amount». Address Block and Greeting Line insert a conventionally formatted address and salutation in one step, and Address Block suppresses lines that are empty.

Step 6 — Refine the list if required. Edit Recipient List allows records to be filtered (only customers of one city), sorted (by PIN, for postal discount), or individually unticked.

Step 7 — Add rules if the wording must vary. Rules → If…Then…Else can insert "Sir" or "Madam" from a Gender field, or a different closing paragraph depending on the amount.

Step 8 — Preview. Preview Results and step through the records. Check the first, the last, and any with unusual data — a very long name, a missing address line, an amount that appears as 1500.000000 (which needs a numeric formatting switch).

Step 9 — Complete the merge. Finish & Merge, then either:

  • Edit Individual Documents — creates one document holding all 100 letters, which can be checked, corrected and saved as a record before printing
  • Print Documents — prints directly
  • Send E-mail Messages — emails each customer, using an email-address field

Step 10 — Save both source files. Keep the main document and the Excel list. The next letter reuses the same recipient list, and the merge can be run again at any time.

AnswerPrepare the Excel data with field names in row 1 → Start Mail Merge (Letters) → Select Recipients from the workbook → Insert Merge Fields → filter/sort the list → add rules if needed → Preview Results → Finish & Merge (Edit Individual Documents, Print, or Email) → save both files for reuse.
Problem 4Exam level

What is spooling? Explain the print queue and why printing does not lock up the computer.

Show solution

Spooling — from Simultaneous Peripheral Operation On-Line — is the technique of placing output intended for a slow device into a temporary file on disk, and then feeding it to the device at whatever rate the device can accept.

Why it is needed. A printer is enormously slower than a processor. Printing a page may take several seconds; in that time the CPU could execute billions of instructions. Without spooling the program would have to hand over each line of output and wait for the printer to accept it, so the application — and the user — would be blocked for the whole duration of the print.

What happens instead. The application writes the entire print job to a spool file on disk as fast as the disk will take it, which is a fraction of a second. It is then finished and the user regains control immediately. A separate part of the operating system, the print spooler service, reads that file and sends it to the printer in the background at the printer's own pace.

The print queue. Because jobs are held on disk, several can wait at once, and the queue is the list of them. From it a job may be:

  • paused and later resumed
  • restarted from the beginning
  • cancelled and removed
  • reordered by priority

The queue also allows one printer to serve many users on a network, each job being printed to completion in turn rather than the outputs becoming interleaved.

Why the computer does not lock up. Three things together: the transfer to disk is fast; the spooler runs as a background process so the CPU continues with foreground work; and the operating system's multitasking shares the processor between the spooler and the application. The user can close the document, or even the program, and printing continues — the job no longer depends on the application, because the output is already safely on disk.

A practical consequence. Cancelling a job from the queue may not stop printing at once, because pages already transferred are held in the printer's own memory and will finish. And if the spool folder's disk fills up, printing fails with an error that appears to be a printer fault but is really a disk-space problem.

AnswerSpooling writes print output to a temporary disk file which a background spooler service then feeds to the printer at the printer's pace. It creates the print queue (jobs can be paused, restarted, cancelled or reordered) and, because the transfer to disk is fast and the spooler runs as a background process under multitasking, the application is freed immediately instead of waiting on the printer.
Problem 5Challenge

A merge produces the letters, but every letter shows «Name» instead of a name, and the addresses have blank lines. Diagnose both faults and give the remedy.

Show solution

Two independent faults, with different causes.

Fault 1 — «Name» appears instead of the data.

There are three possible causes, and they are distinguished by what the document does when Preview Results is toggled.

(a) The field was typed rather than inserted. The characters « and » can be typed from the keyboard or pasted, producing text that looks exactly like a merge field but is ordinary text. Word has no reason to replace it, so it prints literally.
Test: switch Preview Results on. A genuine field changes to data; typed text does not.
Remedy: delete the typed text and insert the field properly with Mailings → Insert Merge Field.

(b) Preview Results is simply switched off. In this state Word deliberately shows the field names so you can see the structure — and if the merge is completed from here the output is still correct.
Test: look at the merged output rather than the main document.
Remedy: switch Preview Results on; nothing else is wrong.

(c) Field codes are being displayed rather than their results, which shows as { MERGEFIELD Name }.
Remedy: press Alt+F9 to toggle field codes off.

A fourth possibility if the data genuinely fails to arrive: the data source is not attached, or the field name in the document no longer matches a column heading in the source — for instance the Excel heading was changed from Name to Student Name after the field was inserted. Edit Recipient List shows whether the source is connected and what its columns are called; Match Fields repairs a mismatch.

Fault 2 — blank lines in the addresses.

The cause is empty fields in the data source. A merge field with no value produces nothing, but the paragraph mark or line break you typed after it in the main document remains — so a customer with no second address line still gets that line's worth of empty space, and the city and PIN are pushed down.

Three remedies, best first.

  1. Use Address Block instead of inserting the address fields one by one. It is designed for exactly this: it assembles the address and suppresses any line whose fields are all empty. This is the correct solution and needs no per-record work.

  2. Use an If…Then…Else rule where a specific line must be conditional: Rules → If…Then…Elseif Address2 is not blank, insert Address2 and a new line, otherwise insert nothing.

  3. Fill the gaps in the data, if the values genuinely exist and were simply omitted. Never "fix" it by putting a space in the empty cells — Word then treats the field as non-empty and the blank line returns.

The general lesson. A merge fault is almost always in one of two places: the link between document and data (fields not inserted, source not attached, names not matching), or the shape of the data (empty cells, blank rows, headings not in row 1). Preview Results, stepping through the first and last records and one deliberately incomplete record, catches nearly all of them before anything is printed.

Answer«Name» printing literally means the field was typed rather than inserted (or Preview Results is off, or field codes are displayed with Alt+F9, or the source/column name no longer matches). Blank address lines come from empty fields whose typed line break remains — use Address Block, which suppresses empty lines, or an If…Then…Else rule.