3 ways to fix numeric formatting errors when using Mail Merge in Microsoft Word

Video 3 ways to fix numeric formatting errors when using Mail Merge in Microsoft Word

One of Mail Merge's long-standing annoyances is the inability to correctly format numbers in Excel. Fortunately, we always have a way out. Here are 3 ways to fix number formatting errors in Mail Merge.

Microsoft Word 's Mail Merge is one of the most popular features. It creates labels, letter templates, emails or reports extremely effectively. When you know how to use it, you can save hours of work. Unfortunately, mastering all the uses of Mail Merge can be a headache.

One of the problems with the mail merge feature is that it cannot properly format numbers in Excel spreadsheets. For example, the sales result in Excel is now 100 but in Word, it suddenly turns into 99.99999999996!

Fortunately, fixing this error is not difficult. In fact, we have 3 ways to handle number format errors when using Mail Merge . You can edit spreadsheets, Mail-Merge documents or change the way the two files are connected. Although this solution is little known, it may be the best option - except that it no longer supports Word 2016.

Note: Although the following steps are done in Office 2016 , it still works on other versions of Word and Excel.

1. Use "Numeric Switch" in Word

The first way for Mail Merge to format numbers from Excel correctly is to edit a Word document. Specifically, you will apply the desired number format code to the merge fields - Merge Field in the Word file. (Basically, merge fields notify the Word document which column in the Excel spreadsheet contains the data to handle.) To apply formatting to a field, you must include a Numeric Switch (formerly known as Picture Switch ) in the field's code box.

The first thing you have to do is know the actual field code. Open the Mail Merge document and click on the Mailings tab at the top of the window. Make sure the Preview Results button is turned off so you can see the Mail-Merge fields. Then right-click in a Mail-Merge box (eg " Donation" ) and select Toggle Field Code . You will see the code for that field, identified by curly braces, for example: {MERGEFIELD Donation} . Now edit the code for this field just by inserting the numeric switch at the end of the code as follows:

{MERGEFIELD Donation \ # $ #, ## 0.00}

The software provides many image codes. Here are 4 examples that correspond to the result:

{MERGEFIELD Sales \ # 00.00} 01.00
{MERGEFIELD Sales \ # $ ###} $ 15
{MERGEFIELD Sales \ # $ #, ## 0.00} $ 1,500.00
{MERGEFIELD Date \ @ "MMMM d"} November 26

As you can see, the Numeric Switch code is identical to the Excel format code, except that before the number is "\ #" and the date is "\ @". (Note, use quotation marks in the date code but not in the numeric code.) To see more code, go to the table below or visit the online help for "numeric switch" in Microsoft Word.

Here are some examples of how numeric field codes handle data in the "Sales" column in Excel spreadsheets.

Numeric Switch for Mail-Merge merge fields

3 ways to fix numeric formatting errors when using Mail Merge in Microsoft Word

In fact, Word and Excel use the same format code, so why don't they use the same Format feature ? For example, why not use the MergeField function like this:

{MERGEFIELD (Donation, "$ #, ## 0.00")}

This is really the concern of many people and perhaps only Microsoft knows the answer.

Note: Remember that when you add or change a Numeric Switch, the results will not appear immediately. You must update the field (right-click on it and select Update Field ), or click the Mailings button > Preview Results . Sometimes, you have to repeat 2 to 3 times this operation. If you are using the Mail-Merge Wizard, you may need to take a step back and undo to see the impact of the changes you have made.

Numeric switches work well in the mixing field, but their use is a bit difficult to remember and easy to make mistakes. If you feel the same way, try one of the next two ways.

2. Edit Excel spreadsheets

This is a way to help you avoid the error of formatting errors when using Mail Merge. In an Excel spreadsheet, insert a column containing a formula that converts numbers or dates in Excel into the text format you want to display in the Mail Merge document.

To do this, you need to use Excel's TEXT function. It allows users to convert numbers or dates into equivalent text format exactly the way the user wants. The downside of this solution is that you need to know the formatting code. Although these codes are identical to the codes used in the Custom Number format feature, few Excel users know of their existence.

For example, the TEXT (B3, "$ #, ## 0.00") and TEXT (C5, "M / dd / yy") formulas convert numeric and date data into text data (in this example, they are "$ 12,345.67" and "12/01/10").

Tip: You should format the cells containing these formulas in different styles, such as italics or some other strange color, to remind you that the numbers are just text. In older versions of Excel , these "numbers" cannot be used in calculations. In Excel 2016, you can use them in all formulas, except for sum functions like SUM and AVERAGE.

The advantage of numeric and date formats such as text is that the text is converted from Excel into a document that uses Mail Merge without distortion. The format options such as font, size, color are unchanged.

The format code for Excel's TEXT function

Below is a collection of the most commonly used codes on the right. The thing to keep in mind is that both "0" and "#" are placeholders for the numbers, but "0" will force the number 0 to appear in the first or last position. "#" Will be replaced with a number if it is not a leading or final zero. Therefore, the code "00000" will ensure the leading zero is not truncated from the New Jersey postcodes.

3 ways to fix numeric formatting errors when using Mail Merge in Microsoft Word

These codes for numbers, dates and times can be used in the TEXT function or Excel's custom number format (Custom). In addition, they can also be used in "Numeric Switches" in Word Mail-Merge Field.

Note, there is little difference between how the code works in Excel and Word in Microsoft 2013. In Excel, you can use "M" or "m" for months and minutes. In most cases, Excel is smart enough to know which unit you are referring to. But Word is not "smart" like that. You must use uppercase letters to indicate the month. Besides, Excel also has an additional code, "MMMMM", which returns only one abbreviation for the month (for example: J, F, M, A, ...).

Adding a few columns containing the TEXT function to the spreadsheet is a simple solution to fix numeric formatting errors when using Mail Merge. You just need to remember that these cells may look like numbers but cannot apply the SUM and AVERAGE functions to them. If you need to convert them to numbers again, you only need to use the VALUE function.

Be careful when dealing with the ROUND function

Instead of the TEXT () function, some people prefer to use the ROUND () function to reduce the number of decimal places. As its name implies, Excel's ROUND () function by default will round up or down the decimal number at the user selected position. The advantage of this approach is that the rounded numbers are not textual and can still be used for calculations. In many cases, although the ROUND () function works well with Mail Merge, you may want to avoid it for the following reasons:

  1. The ROUND function does not hold a dollar sign or a comma separating thousands or more.
  2. ROUND will truncate zeros at the end.
  3. The ROUND function sometimes causes Mail Merge to display decimal errors. For example, the Mail Merge document displays 4 decimal places while ROUND has selected 2 or 3.

In some rare cases, the ROUND function causes Mail Merge to deviate a bit. For example, instead of 1.0014, Mail Merge now shows 1.0013.

3. Use DDE Link

The above two are relatively simple, but if there are many fields that need formatting, they can be frustrating early because you need to remember the format code and although the code is the same, they can be used in different ways.

A light, easy solution is to link Word to the Excel workbook via DDE (Dynamic Data Exchange), which is better than the normal fixed binding process. It sounds complicated, but if you've mastered Mail Merge, DDE is just a "little thing". It is a simple two step process. As a first step, you just need to turn on Word to open the file via DDE. This process only needs to be done once.

Does Office 2016 support DDE? Dynamic Data Exchange is an old technology. Sometimes it works fine but sometimes it doesn't work in Office 2016. You should open the Excel data source before accessing it from Word. Normally with Excel data sources, you must start importing data from the first row of the worksheet. If you're patient enough, you can use DDE in Office 2016).

To set up Word 2013 for DDE links, follow these steps:

  • Click File> Options .
  • Click the Advanced tab on the left and scroll down to the General section .
  • Check the box Confirm file format conversion on open .

From now on, you never have to do the above. You can now open a copy of Word in a variety of formats and paths, including the IDE. The only effect is that every time you open a non-Word file, the program will give you a choice.

The second and final step is to select the data source for the Mail Merge process (in step 3 of the Mail Merge Wizard in Word or after clicking the Select Recipients button in the Mailings ribbon ). Now you only need to perform 3 more clicks.

3 ways to fix numeric formatting errors when using Mail Merge in Microsoft Word

  • After selecting the data you want to use, a new " Confirm Data Source " dialog box will appear.
  • The default link type is OLE, but not the one you want.
  • In the Confirm Data Source dialog box , click the Show all box .
  • In the expanded file type list, select MS Excel Worksheets via DDE (* .xls). (Use this option even when using the newer Excel file format: * .xlsx.)
  • If requested, confirm that you are selecting the Entire Spreadsheet .

3 ways to fix numeric formatting errors when using Mail Merge in Microsoft Word

If you selected the spreadsheet for the Word document, you may have to select it again, but this time through the DDE link. It's done! From now on, your Excel format will be applied correctly on Word Mail Merge documents and you only need to remember to put the data you want to merge in the first workbook of the Excel workbook.

Above is how to fix the number format error in Mail Merge . Hope they are useful to you. If there's any other way, don't hesitate to share with us.

Sign up and earn $1000 a day ⋙

Exploring the Features of IP Anonymizer Database

Exploring the Features of IP Anonymizer Database

In an era where online privacy and data protection have become paramount concerns for individuals and organizations alike, the need for effective tools to safeguard personal information is more critical than ever. The IP Anonymizer Database emerges as a vital resource for those seeking to navigate the complexities of digital anonymity.

TOP AI tools help you add color to old black and white photos

TOP AI tools help you add color to old black and white photos

TOP AI tools help you add color to old black and white photos. If you want to add color to old black & white photos, use one of the AI ​​tools below.

7 rules for storing a bank card

7 rules for storing a bank card

Each bank card is marked with important information - number, owner’s name, expiration date, CVC or CVV and a chip, thanks to which payments are made at terminals (including contactless). In order for this information to be preserved, it is important to treat the means of payment with care.

IObit Malware Fighter 11 Review 2024

IObit Malware Fighter 11 Review 2024

When your computer gets attacked by a virus or malware, you’ll certainly such for a powerful antivirus to fight back. Well, IObit Malware Fighter is exactly what you need. From its name alone, you can be certain that you are getting the tough protection your computer needs.

How To Find Quality And Fast Internet In Montreal

How To Find Quality And Fast Internet In Montreal

Montreal, a city brimming with culture, history, and Poutine (a famous Canadian dish), deserves an internet connection that can keep up. Whether you’re a streamer glued to Twitch, a workaholic juggling video conferences, or a casual web surfer, a reliable and fast internet plan is essential.

Google Drive for desktop will be discontinued in March 2018

Google Drive for desktop will be discontinued in March 2018

Google Drive for desktop will be discontinued in March 2018, Google has officially announced that it will stop supporting Google Drive for desktop and then the company will remove the application.

Simple ways to fix AirDrop not working error

Simple ways to fix AirDrop not working error

Simple ways to fix AirDrop not working error, AirDrop not working on iPhone, iPad, Mac what to do? This article will provide you with simple ways

TOP best computer screen recording software 2024

TOP best computer screen recording software 2024

TOP best computer screen recording software 2024, Which is the best lightweight, free, high-quality computer screen recording software? Let's find out the top with WebTech360

What is an email address? How to get an email address?

What is an email address? How to get an email address?

What is an email address? How to get an email address?, What is an email address? What is email address entry? This article will answer all your related questions

Every WhatsApp shortcut for computer you need to know

Every WhatsApp shortcut for computer you need to know

Every WhatsApp shortcut for your computer you need to know, WhatsApp is one of the most popular free messaging apps today. The keyboard shortcuts below will help

Unlocking Baccarats Social Thrills: Tedbets Global Gaming Hub

Unlocking Baccarats Social Thrills: Tedbets Global Gaming Hub

Discover the vibrant social scene of baccarat on Tedbet, where players worldwide connect, chat, and enjoy the excitement of live dealer games.

Summary of how to find videos on TikTok

Summary of how to find videos on TikTok

Summary of how to find videos on TikTok, Finding videos on TikTok is not difficult. Let's learn together how to find the original video on TikTok or find the Tik Tok clip you want to watch

Improved mouse sensitivity for Free Fire on BlueStacks

Improved mouse sensitivity for Free Fire on BlueStacks

Improved mouse sensitivity for Free Fire on BlueStacks, BlueStacks has made important improvements for Free Fire gamers. Please upgrade BlueStacks 4.230.10

Huang you: Butter Camera sparkling photo editing app

Huang you: Butter Camera sparkling photo editing app

Huang you: Sparkling photo editing application Butter Camera, Huang you (黄油 相机) is an extremely hot Chinese editing application today, here we would like to invite you

Tips for using Chrome Web Store you need to know

Tips for using Chrome Web Store you need to know

Tips for using Chrome Web Store you need to know, Chrome Web Store or Chrome Web Store offers a selection of apps, extensions and stylish browser wallpapers

What is CapCut? Is it safe to use CapCut?

What is CapCut? Is it safe to use CapCut?

What is CapCut? Is it safe to use CapCut?, What is CapCut? Is music on CapCut copyrighted? Let's find out with WebTech360 what you need to know about CapCut!

Why is buying TikTok coins cheaper on PC?

Why is buying TikTok coins cheaper on PC?

Why is it cheaper to buy TikTok coins on PC?, TikTok gives users the option to exchange real money for coins in the app. However, buying TikTok coins on PC is cheap

How much Internet capacity does Zoom use?

How much Internet capacity does Zoom use?

How much Internet capacity does Zoom use?, Zoom is an indispensable remote online learning and working software during the epidemic, but it can be extremely bandwidth-consuming.

EmuOS: Relive your childhood with legendary games of the past

EmuOS: Relive your childhood with legendary games of the past

EmuOS: Relive your childhood with legendary games of the past, EmuOS is a Web interface that simulates basic Windows 3.1, 95, 98, NT operating systems that provide a lot

TOP best ways to open and read PDF files on your computer

TOP best ways to open and read PDF files on your computer

TOP best ways to open and read PDF files on your computer. How to open PDF files on your computer is not too difficult. In fact, you have many ways to read PDF files. Join WebTech360