A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Hi Tony,
Thank you for your message regarding merging multiple addresses from consecutive Excel rows into a single paragraph in Word, with each document containing between 6 and 100 addresses. Typing thousands of addresses by hand would certainly take a great deal of time, so this is a very reasonable goal.
This occurs because Mail Merge is designed to produce one document for each row of data, which means it cannot combine several rows into one letter on its own. Mail merge using an Excel spreadsheet | Microsoft Support
Fortunately, this can be achieved by combining the addresses in Excel first and then merging them as a single field. Please follow the steps below:
1/ Assign each address to a letter:
- Insert a new column A next to your addresses (assuming the addresses are in column B). Enter the letter number each address belongs to.
- If every letter needs the same number of addresses, for example, 50, type this formula in A2 and fill it down:
=ROUNDUP(COUNTA($B$2:B2)/50,0)
2. Create a summary sheet:
- Add a new sheet and type "Group" in A1 and "Addresses" in B1. In A2, enter:
=UNIQUE(Sheet1!A2:A5000) - In B2, enter the formula below and fill it down to match the list in column A:
=TEXTJOIN(", ",TRUE,FILTER(Sheet1!$B$2:$B$5000,Sheet1!$A$2:$A$5000=A2))
3/ Convert the results to values: Select columns A and B on the summary sheet, copy them, then right click and choose Paste Special > Values. This keeps the merge stable.
4/ Connect the list in Word: Go to Mailings > Select Recipients > Use an Existing List, then choose your workbook and the summary sheet.
5/ Insert the field: Place your cursor in the paragraph, select Insert Merge Field > Addresses, check the output with Preview Results, then click Finish & Merge.
Please note:
- Replace "Sheet1" and the 5000 row range with your actual sheet name and data size.
- To show each address on its own line, replace ", " with CHAR(10) in the TEXTJOIN formula.
- These functions are available in Microsoft 365 and Excel 2021 or later.
I hope this information helps you save time on your letters. Should you have any further questions, please feel free to let me know.