Format Whole Numbers Without .00 in a Word Mail Merge
Question details
Format mail merge values so whole numbers appear without decimal places and fractional values retain two decimal places.

- Product
- Microsoft Word Mail Merge and Microsoft Excel
- Device & OS
- not provided
- Scenario
- Creating individual score sheets in Word from an Excel spreadsheet containing integers, fractional scores, and percentages.
- Observed behavior
- Some merged numbers display excessive decimal places, while applying a two-decimal number format makes whole numbers display with .00.
Check the exact Excel column header for the score you want to format, and confirm that the source values are numeric. Leave any percentage fields with their existing formatting if they already display correctly.
Use a conditional Word field for whole and fractional numbers
Use a conditional merge field when whole scores should have no decimal places but fractional scores should show two.
The formula tests whether the value has a fractional part. It applies a whole-number picture to integers and a two-decimal picture to other values.
In the Word merge document, press Alt+F9 on Windows to display field codes. Find the MERGEFIELD for the score column.
Replace the score field with this construction, substituting your Excel column name for Score: { IF { =MOD({ MERGEFIELD Score },1) } > 0 { MERGEFIELD Score \# 0.00 } { MERGEFIELD Score \# 0 } }. Insert every pair of field braces with Ctrl+F9 on Windows; typed braces are not Word field delimiters.
Press Alt+F9 again, then select Mailings > Preview Results and move through several records. Select the field and press F9 if it needs updating.

Create a formatted text column in the Excel source
Use a helper column if you prefer to prepare the display values in the spreadsheet rather than build a conditional Word field.
Prepare formatted scores for a WPS Writer mail merge
Use WPS Spreadsheets to create a text column that displays whole scores without decimals and fractional scores with two decimals, then merge that column into a WPS Writer document.
- 1. Open the score workbook: Open the Excel workbook in WPS Spreadsheets and identify the score column.
- 2. Create formatted values: Add a FormattedScore column. If the first score is in A2, enter =IF(A2="","",IF(MOD(A2,1)=0,TEXT(A2,"0"),TEXT(A2,"0.00"))) and fill it down, then save the workbook.
- 3. Connect the source: Open the score-sheet document in WPS Writer and use the Mailings tools to select the saved workbook as the mail merge data source.
- 4. Insert and preview the field: Insert the FormattedScore merge field in the document, then preview several records to verify both whole and fractional scores.

Frequently Asked Questions
Why does Word show 5.00 instead of 5 in my mail merge?
A numeric picture such as \# 0.00 forces two decimal places for every value. Use a conditional field or a formatted text column to apply different displays to whole and fractional numbers.
How do I insert Word field braces for the conditional formula?
On Windows, press Ctrl+F9 for each pair of field braces. Typing braces directly does not create a Word field. Use Alt+F9 to toggle field-code display.
Will the conditional field keep two decimal places for fractional scores?
Yes. The fractional branch uses \# 0.00, so a value such as 5.5 displays as 5.50. Values with more than two decimal places are rounded for display.
Can Word preserve Excel's displayed number formatting through the data connection?
On Windows, a DDE connection may preserve Excel's displayed formatting. If available, enable Confirm file format conversion on open under File > Options > Advanced > General, then select the Excel DDE option when connecting the workbook. Availability depends on the Office setup.




