How to mail merge multiple rows of data on one "Word" document when Excel data is the same.

Chandra Binder 20 Reputation points
2025-12-12T17:05:49.93+00:00

Attached is a PDF of [Moderator note: personal info removed] excel spreadsheet and a Word document that has a mail merge started. The excel document represents families who have multiple children. I currently have the mail merge adding info from column C and E to the Word document.

HOWEVER, If a family (column G) has the same parent number, then I need to mail merge Column C and E onto the Word document for all children assigned to that parent number. It currently merges, but as separate pages. I need all children on the same page of the word document (when they belong to the same family). For example, family 7 has 2 children and family 8 has 4.

I have listed on the word document where I need the children to show up. One right after the other.

Is there a way to do this efficiently? Thanks in advance for your help.

Microsoft 365 and Office | Word | For business | Windows
0 comments No comments

Answer accepted by question author
Chris Duong 10,790 Reputation points Microsoft External Staff Moderator
2025-12-12T18:14:13.87+00:00

Hi @Chandra Binder,  

Welcome to the Microsoft Q&A forum.      

Thank you for contacting us regarding your mail merge issue. I truly appreciate the time you took to explain your scenario and share the supporting files. 

Based on your description, I understand that the current mail merge creates a separate page for each child, even when multiple children belong to the same family (same Parent Number). Your goal is to have all children displayed together on a single page under the corresponding parent’s information. 

Word’s default “Letters” mail merge treats each row in Excel as a separate record, which is why each child appears on its own page. To achieve one page per family, you can group the data by Parent Number and display all children for that family together. 

Here are my recommendations that I hope will be helpful to you:

Option 1 - Pre-group in Excel (Simplest and most reliable) 

Convert the “multiple children” data into one row per family, with a single field that concatenates all children’s details (Gender and Size) into multiple lines. Then perform a standard “Letters” mail merge. 

1/ Sort and convert your data into a Table (Ctrl+T), assume the table name is TblKids. 

2/ Create a new sheet called Parents and set up columns: 

  • A2 (Unique Parent Number):  =SORT(UNIQUE(FILTER(TblKids[Parent], TblKids[Parent]<>"")))
  • B2 (Parent Name for Parent Number):  =XLOOKUP(A2, TblKids[Parent], TblKids[Parent Name], "")
  • C2 (Children List: combine Gender & Size for each Parent Number, separated by line breaks):  =TEXTJOIN(CHAR(10), TRUE, FILTER(TblKids[M or F] & " - " & TblKids[Requested Size Adult], TblKids[Parent]=A2))
  • Drag formulas down for all Parent Numbers. 

3/ Use the Parents sheet as the data source for mail merge. 

4/ In Word, insert fields: 

  • «Parent Name», «Parent Number» 
  • At the position for children, insert «Children List» (column C2 above). 
    → Ensure the paragraph allows multi-line text so line breaks display correctly. 

5/ Add a page break after each record if needed (Word usually does this automatically since each record now represents one family). 

Note: Requires Excel 365 for FILTER/TEXTJOIN. Older versions can use PivotTable or Power Query to group data. 

Option 2 - Word-Only: Use “Directory/Catalog” Merge + Group by Parent (Advanced) 

Switch the merge type to Directory (Catalog) so Word does not automatically break pages per record. Then use field codes to print the family header when Parent Number changes and list all children until the next family. Insert a conditional page break after each family. 

1/ Sort Excel by Parent (column G) so children of the same family are grouped together. 

2/ In Word → Mailings > Start Mail Merge > Directory (sometimes called Catalog). 

3/ Design the layout: 

  • Create a header block (Parent Name, Parent Number) that prints only when starting a new family. 
  • Use Ctrl+F9 to insert field codes, for example:  { IF { MERGEFIELD Parent } <> { REF PrevParent } "{ IF { MERGESEQ } > 1 "{ PAGE BREAK }" "" }{ SET PrevParent { MERGEFIELD Parent } } Parent Name: { MERGEFIELD ParentName } Parent Number: { MERGEFIELD Parent } " }  
    • { SET PrevParent … } stores the current Parent for comparison. 
    • { MERGESEQ } > 1 adds a page break before the second family onward. 
  • Below the header, create a two-column table (or your preferred layout): 
    • Column 1: «M or F» 
    • Column 2: «Requested Size Adult» 
      → In Directory mode, records continue flowing, so children of the same family appear consecutively under the header. 

4/ Complete the merge to a new Word document. Each family will appear on one page with all children listed below.

Notes:  

  • Field codes are complex and easy to misconfigure if not inserted correctly. 
  • In “Letters” mode, even using Next Record or NextRecordIf, Word still creates one page per record, so switching to Directory/Catalog is essential. 

For more details, you can refer to these articles: 

Note: Microsoft is providing the above information as a convenience to you. Some of the websites are not under Microsoft's control. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link    

I hope this information is helpful. Please follow these steps and let me know if it works for you. If not, feel free to share them in the comments on this post so I can continue to assist you.  

I look forward to hearing your thoughts on this.  


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have any extra questions about this answer, please click "Comment".   

Note: Follow the steps in our documentation to enable email notifications if you want to receive email notifications related to this topic.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Newest
  1. Chandra Binder 20 Reputation points
    2025-12-12T19:08:25.01+00:00

    OMG - This way out of my skill level, but tried Option1 and was able to perform a quick test and I think it's working great.

    I am so grateful for your help. You are the best!

    Thanks so much.

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.