How to do a mail merge from Excel to Word

Find out how to mail merge from Excel to Word!

The Microsoft Excel logo on a red background.

You can trust PC GuideOur team of experts use a combination of independent consumer research, in-depth testing where appropriate – which will be flagged as such, and market analysis when recommending products, software and services. Find out how we test here.

Last Updated on

If you want to learn how to do a mail merge from Excel to Word, we’ve got you covered.

Microsoft Office is a great tool for managing data and sending bulk emails. Things become even better when you use the mail merge tool, which helps you create letters or emails by extracting data from Excel. However, while the mail merge tool is quite intuitive, the options might seem daunting if you’re doing this for the first time. 

This is where we come in. In this guide, we will walk you through how to do a mail merge from Excel to Word.  

How to mail merge from Excel to Word

Scenario on hand: We have a fictional dataset of customers with their first name, last name, email address, and products ordered. 

What we want to accomplish: Explore how to do a mail merge using Excel and Word with a step-by-step guide:

  • Step #1: Prepare the spreadsheet
  • Step #2: Begin the mail merge from Excel to Word
  • Step #3: Connect to your Excel spreadsheet
  • Step #4: Choose The recipients of the mail merge
  • Step #5: Write your letter
  • Step #6: Add your merge fields
  • Step #7: Add merge rules 
  • Step #8: Finish your mail merge

Step 1: Prepare the spreadsheet

Before you begin, you want to ensure that everything in your Excel spreadsheet is prepared for the mail merge.

All the data required for the merge should be provided on the first sheet of your Excel spreadsheet.

Here is a snapshot of our sample dataset:

An Excel spreadsheet containing a list of numbers.

Some other points to check when you’re preparing your spreadsheet:

  • The spreadsheet must be formatted with one row for each intended recipient.
  • The first row of the spreadsheet should have the column labels.
  • Make sure no field name is missing.
  • Check that the column names in the spreadsheet and the field names you wish to insert match.
  • Ensure that data entries in the spreadsheet are correctly formatted so their values can be read appropriately.
  • Save the Excel spreadsheet to your local device if it isn’t already saved.

Step 2: Begin the mail merge from Excel to Word

With your information prepared and checked, you can begin the mail merge. The process is suitable for both mail and email messages.

Once your data is checked, open a Word document.

Next, select the Mailings tab and “Start Mail Merge.” A drop-down menu will appear. Select the type of mail merge you wish to run, such as Letters or E-mail Messages.

For our demonstration, we are choosing “E-mail Messages.

How to create a new document in Microsoft Word using Excel.
How to create a new document in Microsoft Word using Excel.

Step 3: Connect to your Excel spreadsheet

On the Mailings tab, click on “Select Recipients”. From the drop-down menu, select “Use an Existing List”.

Use an existing list in Excel

A dialog box will appear, allowing you to connect your Excel spreadsheet to your Word document. Find your chosen Excel file and select “Open,” then find your chosen target sheet and select “OK.”

Make sure the checkbox on the bottom is ticked:

Tick the checkbox

Step 4: Choose the recipients of the mail merge

On the Mailings tab, click Edit Recipients List. This will allow you to refine the recipient’s list and remove anyone not in the intended audience.

The Mail Merge Recipients dialog box also allows you to sort, filter, and validate the recipient’s email using the Refine recipient list option in the same dialog box.

How to create a new document in Microsoft Word for mail merge.

Step 5: Write your letter

Create your letter in your Word document, or copy a pre-written message from another document.

Here’s the message we created:

Created message for mail merge

Note that we added the field names in square brackets, but these still need to be linked to the mailing list. 

We will add the merge fields in the next step. 

Step 6: Add your merge fields

In the Mailings tab, select Greeting Line. A dialog box will appear. Select the settings and options that work for you using the Preview section to check the data is correct.

We only want to address the customer by their first name, so we select the option that gives us that and check the preview:

Checking the address of the customer in Word for mail merge

Note: Since we are drafting an email, there’s no need to add the Address Block. However, if you wish to draft a letter for mail, modify the Address Block settings in a similar fashion. 

The Greeting Line will appear as a placeholder. You can erase the greeting line from your message:

Greeting line

Other merge fields can be added using the Insert Merge Field drop-down menu. Insert your chosen field within the text.

Select “Highlight Merge Fields” for a better view. 

Here is what our draft looks like:

Draft look

Step 7: Add merge rules

Note that we have two merge fields, “Product 1” and “Product 2”. Some customers ordered one product, while some ordered two products. 

If we leave this as it is, it will appear like this: Chamomile oilTee tree oil. 

We want to add an “and” between Product_1 and Product_2, but only if Product_2 is not blank.

For this, we place the text cursor between the Product_1 and Product_2 placeholders and head to “If…then…else” under the “Rules” option, which opens up a dialog box. 

Note: Make sure there is no space between the two placeholders, as we will add space in the rules.

Adding merge rules

We select Product_2 as the field name and select “is not blank” as “Comparison.”

In “Insert this text,” we add “and” with one space at the beginning and one space at the end, then click “OK.”

How to add a location to a word document using mail merge and Excel.

Step 8: Finish your mail merge

To preview your email, select “Preview Results” on the Mailing tab. Use the arrow keys to navigate across the recipients.

Note here that we have just one product listed for Recipient 1 and 2 products separated by “and” for Recipient 3 because of our “If…then…else” rule. 

How to create a new email in Microsoft Word using mail merge.

How to create a new email in Microsoft Word using mail merge.

To finish, select the Finish & Merge button on the Mailings tab. From here, you can print or email the letter. Alternatively, you can edit individual documents using the same button.

How to create a new email in Microsoft Word using mail merge.

Save your mail merge document by clicking the Save button. 

The mail merge Word document will now stay connected to the Excel data source. Next time you have a bulk message to send out, you can use the same document.

Wrapping up

A mail merge from Excel can help you to place data into form letters accurately. By using this method, you can send personalized mail with greater ease. Ensure the information and headings in the Excel form are correct before merging, or you will encounter errors. However, the preview button can ensure everything is accurate and the data has been merged correctly.

Learn more about Excel through these helpful guides:

Kevin is the Editor of PC Guide. He has a broad interest and enthusiasm for consumer electronics, PCs and all things consumer tech - and more than 15 years experience in tech journalism.

'),b.insertAdjacentHTML(d,e));return document.getElementById(a)};c.prototype._repeatDynamicAds=function(b){var a= [],d=this._removeRecipeCapExperiment.result&&"Recipe"===b.location?99:this.locationMaxLazySequence.get(b.location),e=b.lazy?u(d,0):0;d=b.max;var f=b.lazyMax;e=Math.max(d,0===e&&b.lazy?d+f:Math.min(Math.max(e-b.sequence+1,0),d+f));for(f=0;f=d;a.push(y(y({},b),{sequence:g,lazy:h}))}return a};c.prototype._locationEnabled=function(b){b=this._clsOptions.enabledLocations.includes(b.location);var a=this._clsOptions.disableAds&&this._clsOptions.disableAds.all|| document.body.classList.contains("adthrive-disable-all"),d=!document.body.classList.contains("adthrive-disable-content")&&!this._clsOptions.disableAds.reasons.has("content_plugin");return b&&!a&&d};return c}(),Za=function(c){function b(a,d){var e=c.call(this,a,"ClsVideoInsertion")||this;e._videoConfig=a;e._clsOptions=d;e._IN_POST_SELECTOR=".adthrive-video-player";e._WRAPPER_BAR_HEIGHT=36;e._playersAddedFromPlugin=[];d.removeVideoTitleWrapper&&(e._WRAPPER_BAR_HEIGHT=0);return e}v(b,c);b.prototype.init= function(){this._initializePlayers()};b.prototype._wrapJWPlayerWithCLS=function(a,d,e){void 0===e&&(e=0);return a.parentNode?(d=this._createGenericCLSWrapper(.5625*a.offsetWidth,d,e),a.parentNode.insertBefore(d,a),d.appendChild(a),d):null};b.prototype._createGenericCLSWrapper=function(a,d,e){var f=document.createElement("div");f.id="cls-video-container-".concat(d);f.className="adthrive";f.style.minHeight="".concat(a+e,"px");return f};b.prototype._getTitleHeight=function(a){a.innerText="Title";a.style.visibility= "hidden";document.body.appendChild(a);var d=window.getComputedStyle(a),e=parseInt(d.height,10),f=parseInt(d.marginTop,10);d=parseInt(d.marginBottom,10);document.body.removeChild(a);return Math.min(e+d+f,50)};b.prototype._initializePlayers=function(){var a=document.querySelectorAll(this._IN_POST_SELECTOR);a.length&&this._initializeRelatedPlayers(a);this._shouldRunAutoplayPlayers()&&this._determineAutoplayPlayers()};b.prototype._createStationaryRelatedPlayer=function(a,d,e){var f="mobile"===this._device? [400,225]:[640,360],g=G.Video_In_Post_ClicktoPlay_SoundOn;d&&a.mediaId&&(e="".concat(a.mediaId,"_").concat(e),d=this._wrapJWPlayerWithCLS(d,e),this._playersAddedFromPlugin.push(a.mediaId),d&&this._clsOptions.setInjectedVideoSlots({playerId:a.playerId,playerName:g,playerSize:f,element:d,type:"stationaryRelated"}))};b.prototype._createStickyRelatedPlayer=function(a,d){var e="mobile"===this._device?[400,225]:[640,360],f=G.Video_Individual_Autoplay_SOff;this._stickyRelatedOnPage=!0;this._videoConfig.mobileStickyPlayerOnPage= "mobile"===this._device;if(d&&a.position&&a.mediaId){var g=document.createElement("div");d.insertAdjacentElement(a.position,g);d=document.createElement("h3");d.style.margin="10px 0";d=this._getTitleHeight(d);d=this._wrapJWPlayerWithCLS(g,a.mediaId,this._WRAPPER_BAR_HEIGHT+d);this._playersAddedFromPlugin.push(a.mediaId);d&&this._clsOptions.setInjectedVideoSlots({playlistId:a.playlistId,playerId:a.playerId,playerSize:e,playerName:f,element:g,type:"stickyRelated"})}};b.prototype._createPlaylistPlayer= function(a,d){var e=a.playlistId,f="mobile"===this._device?G.Video_Coll_SOff_Smartphone:G.Video_Collapse_Autoplay_SoundOff,g="mobile"===this._device?[400,225]:[640,360];this._videoConfig.mobileStickyPlayerOnPage=!0;var h=document.createElement("div");d.insertAdjacentElement(a.position,h);d=this._wrapJWPlayerWithCLS(h,e,this._WRAPPER_BAR_HEIGHT);this._playersAddedFromPlugin.push("playlist-".concat(e));d&&this._clsOptions.setInjectedVideoSlots({playlistId:a.playlistId,playerId:a.playerId,playerSize:g, playerName:f,element:h,type:"stickyPlaylist"})};b.prototype._isVideoAllowedOnPage=function(){var a=this._clsOptions.disableAds;if(a&&a.video){var d="";a.reasons.has("video_tag")?d="video tag":a.reasons.has("video_plugin")?d="video plugin":a.reasons.has("video_page")&&(d="command queue");q.error(d?"ClsVideoInsertionMigrated":"ClsVideoInsertion","isVideoAllowedOnPage",Error("DBP: Disabled by publisher via ".concat(d||"other")));return!1}return this._clsOptions.videoDisabledFromPlugin?!1:!0};return b}(function(c){function b(a, d){var e=c.call(this)||this;e._videoConfig=a;e._component=d;e._stickyRelatedOnPage=!1;e._relatedMediaIds=[];a=void 0;void 0===a&&(a=navigator.userAgent);a=/Windows NT|Macintosh/i.test(a);e._device=a?"desktop":"mobile";e._potentialPlayerMap=e.setPotentialPlayersMap();return e}v(b,c);b.prototype.setPotentialPlayersMap=function(){var a=this._videoConfig.players||[],d=this._filterPlayerMap();a=a.filter(function(e){return"stationaryRelated"===e.type&&e.enabled});d.stationaryRelated=a;return this._potentialPlayerMap= d};b.prototype._filterPlayerMap=function(){var a=this,d=this._videoConfig.players,e={stickyRelated:[],stickyPlaylist:[],stationaryRelated:[]};return d&&d.length?d.filter(function(f){var g;return null===(g=f.devices)||void 0===g?void 0:g.includes(a._device)}).reduce(function(f,g){f[g.type]||(q.event(a._component,"constructor","Unknown Video Player Type detected",g.type),f[g.type]=[]);g.enabled&&f[g.type].push(g);return f},e):e};b.prototype._checkPlayerSelectorOnPage=function(a){var d=this;a=this._potentialPlayerMap[a].map(function(e){return{player:e, playerElement:d._getPlacementElement(e)}});return a.length?a[0]:{player:null,playerElement:null}};b.prototype._getOverrideElement=function(a,d,e){a&&d?(e=document.createElement("div"),d.insertAdjacentElement(a.position,e)):(d=this._checkPlayerSelectorOnPage("stickyPlaylist"),a=d.player,d=d.playerElement,a&&d&&(e=document.createElement("div"),d.insertAdjacentElement(a.position,e)));return e};b.prototype._shouldOverrideElement=function(a){a=a.getAttribute("override-embed");return"true"===a||"false"=== a?"true"===a:this._videoConfig.relatedSettings?this._videoConfig.relatedSettings.overrideEmbedLocation:!1};b.prototype._checkPageSelector=function(a,d,e){void 0===e&&(e=[]);return a&&d&&0===e.length?("/"!==window.location.pathname&&q.event("VideoUtils","getPlacementElement",Error("PSNF: ".concat(a," does not exist on the page"))),!1):!0};b.prototype._getElementSelector=function(a,d,e){if(d&&d.length>e)return d[e];q.event("VideoUtils","getPlacementElement",Error("ESNF: ".concat(a," does not exist on the page"))); return null};b.prototype._getPlacementElement=function(a){var d=a.pageSelector,e=a.elementSelector;a=a.skip;var f=da(d),g=f.valid,h=f.elements;f=S(f,["valid","elements"]);var k=ca(e),l=k.valid,p=k.elements;k=S(k,["valid","elements"]);return""===d||g?l?this._checkPageSelector(d,g,h)?this._getElementSelector(e,p,a)||null:null:(q.error("VideoUtils","getPlacementElement",Error("".concat(e," is not a valid selector")),k),null):(q.error("VideoUtils","getPlacementElement",Error("".concat(d," is not a valid selector")), f),null)};b.prototype._getEmbeddedPlayerType=function(a){(a=a.getAttribute("data-player-type"))&&"default"!==a||(a=this._videoConfig.relatedSettings?this._videoConfig.relatedSettings.defaultPlayerType:"static");this._stickyRelatedOnPage&&(a="static");return a};b.prototype._getMediaId=function(a){return(a=a.getAttribute("data-video-id"))?(this._relatedMediaIds.push(a),a):!1};b.prototype._createRelatedPlayer=function(a,d,e,f){"collapse"===d?this._createCollapsePlayer(a,e):"static"===d&&this._createStaticPlayer(a, e,f)};b.prototype._createCollapsePlayer=function(a,d){var e=this._checkPlayerSelectorOnPage("stickyRelated"),f=e.player;e=e.playerElement;var g=f?f:this._potentialPlayerMap.stationaryRelated[0];g&&g.playerId?(this._shouldOverrideElement(d)&&(d=this._getOverrideElement(f,e,d)),d=document.querySelector("#cls-video-container-".concat(a," > div"))||d,this._createStickyRelatedPlayer(y(y({},g),{mediaId:a}),d)):q.error(this._component,"_createCollapsePlayer","No video player found")};b.prototype._createStaticPlayer= function(a,d,e){this._potentialPlayerMap.stationaryRelated.length&&this._potentialPlayerMap.stationaryRelated[0].playerId?this._createStationaryRelatedPlayer(y(y({},this._potentialPlayerMap.stationaryRelated[0]),{mediaId:a}),d,e):q.error(this._component,"_createStaticPlayer","No video player found")};b.prototype._shouldRunAutoplayPlayers=function(){return this._isVideoAllowedOnPage()&&(this._potentialPlayerMap.stickyRelated.length||this._potentialPlayerMap.stickyPlaylist.length)?!0:!1};b.prototype._determineAutoplayPlayers= function(){var a=this._component,d="VideoManagerComponent"===a,e=this._config;if(this._stickyRelatedOnPage)q.event(a,"stickyRelatedOnPage",d&&{device:e&&e.context.device,isDesktop:this._device}||{});else{var f=this._checkPlayerSelectorOnPage("stickyPlaylist"),g=f.player;f=f.playerElement;g&&g.playerId&&g.playlistId&&f?this._createPlaylistPlayer(g,f):q.event(a,"noStickyPlaylist",d&&{vendor:"none",device:e&&e.context.device,isDesktop:this._device}||{})}};b.prototype._initializeRelatedPlayers=function(a){for(var d= new Map,e=0;e