Formatting Issues

How to Remove AM and PM from Excel and Word Mail Merge Times

Ayan MasoodAyan Masood Oct 21, 2026 870 views

Question details

The user needs to display time values in Word mail merge documents without the AM or PM designation, maintaining a clean 24-hour or hour/minute format.

How to Remove AM and PM from Excel and Word Mail Merge Times
Product
Word, Excel
Device & OS
not provided
Scenario
Performing a mail merge in Word using a data source from Excel containing time values.
Observed behavior
Word pulls in the underlying AM/PM designation from Excel time values, even if the Excel cells are formatted to hide them.
Before you start

Ensure your Excel data source is saved and closed before performing the mail merge in Word. To view and edit field codes in Word, you can press Alt+F9 on your keyboard.

Solution 1Recommended

Use a Date and Time Formatting Switch in Word

The most reliable method is to directly instruct Word how to format the time using a merge field switch.

By default, Word pulls the raw unformatted data from Excel. Adding a specific format switch tells Word to display the time exactly as you define, overriding any default AM/PM settings.

1
Toggle Field Codes

Right-click the mail merge time field in your Word document and select 'Toggle Field Codes', or simply press Alt+F9.

2
Locate the Merge Field

Find the merge field code, which will look similar to { MERGEFIELD Start_Time }.

3
Add the Format Switch

Click inside the closing bracket and add the time format switch \@ "hh:mm". The code should now look like { MERGEFIELD Start_Time \@ "hh:mm" }.

4
Update and Preview

Right-click the field again and select 'Update Field', or press Alt+F9 to hide the codes. Click 'Preview Results' to verify the AM/PM designation is gone.

Use a Date and Time Formatting Switch in Word
Preserve Formatting: Using a switch ensures the format remains stable even if you update the merge field or refresh the data later.
Seamless Mail Merge with WPS Office

Easily Manage Mail Merges with WPS Office

WPS Office provides a highly compatible and intuitive Mail Merge feature in WPS Writer and WPS Spreadsheet. You can easily format text, dates, and times exactly how you want them without dealing with complex field codes.

  1. 1. Prepare Data: Open WPS Spreadsheet and format your time column to 24-hour format or use the TEXT function.
  2. 2. Start Mail Merge: Open WPS Writer and navigate to the 'References' tab to access the Mail Merge tools.
  3. 3. Connect Data Source: Click 'Open Data Source' and select your saved WPS Spreadsheet file.
  4. 4. Insert and Preview: Insert the time merge fields into your document and click 'View Merged Data' to ensure a clean, AM/PM-free display.
Full compatibility with Microsoft Word and Excel file formats (.docx, .xlsx)Intuitive Mail Merge wizard for quick and flawless document generationAdvanced cell formatting options to easily control date and time displaysFree and lightweight alternative for seamless office productivity
QA img-9

Frequently Asked Questions

Why does Word show AM/PM when my Excel data is formatted in 24-hour time?

Word pulls the underlying raw data from Excel, not the visual cell formatting. Because Excel internally stores times as fractions of a 24-hour day, Word defaults to displaying them with an AM/PM designation unless instructed otherwise with a field format switch.

Can I change my Windows regional settings to fix the mail merge time format?

While regional settings govern your system's default time display, changing them is not recommended just for a mail merge. It's much safer and more reliable to use the \@ "hh:mm" field switch directly within your Word document.

How do I toggle field codes in Word to edit the merge field?

You can quickly toggle the display of field codes on and off by pressing Alt+F9 on your keyboard. Alternatively, you can right-click an individual merge field and select 'Toggle Field Codes' from the context menu.

Does the TEXT formula change my actual time data in Excel?

Yes, the =TEXT() formula converts the underlying numeric time value into a static text string. Because of this, you won't be able to use the new text cells in mathematical time calculations, but they will merge perfectly into Word exactly as they look.