Fix Excel Mail Merge Date Formatting Switches Failing for Some Dates
Question details
The user is experiencing inconsistent formatting during a mail merge where date formatting switches apply correctly to some Excel dates but fail for others.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Performing a mail merge using an Excel spreadsheet as the data source and applying date formatting switches in the word processor.
- Observed behavior
- Mail merge date-formatting switches successfully format some values but fail to format others, despite the entire Excel column appearing to use the same date format.
Before troubleshooting the mail merge data, ensure you have saved all recent changes to your Excel workbook and closed it completely, as an open workbook can interfere with the data retrieval process.
Verify Date Values and Close the Excel Workbook
Ensure all cells in the date column are strictly stored as numeric dates rather than text, and close the workbook to allow the mail merge process to read the data correctly.
Mail merge formatting switches rely on the source data being recognized as a valid numeric date. If the Excel workbook is open during the merge, or if some cells contain dates stored as text, the formatting switches will fail to apply to those specific records.
Open your Excel data source workbook and select the entire column that contains the dates failing to merge properly.
Navigate to the 'Data' tab and click on 'Text to Columns' in the Data Tools group. Choose 'Delimited' and click 'Next' twice.
In Step 3 of the wizard, select 'Date' in the Column data format section, choose the format matching your input (e.g., MDY), and click 'Finish'. This forces all text dates into actual numeric date values.
Save your changes by pressing Ctrl + S, then completely close the Excel application. The workbook must not be actively open when running the mail merge.
Return to your word processing document, refresh the data source connections, and preview the results to confirm the date switches now apply correctly to all records.

Perform Flawless Mail Merges with WPS Office
Avoid complex data format clashes and locked file issues by using WPS Office. With seamlessly integrated Writer and Spreadsheets applications, WPS Office ensures accurate mail merges, reliably applying data formats directly from your spreadsheet without formatting hiccups.
- 1. Open WPS Writer: Launch WPS Office and open or create your main mail merge document in the Writer application.
- 2. Start Mail Merge: Navigate to the 'References' tab on the top ribbon and click on 'Mail Merge' to activate the integrated toolset.
- 3. Select Data Source: Click 'Open Data Source', browse your computer for your WPS Spreadsheets (.xlsx) file, and select the sheet containing your standardized date values.
- 4. Insert Merge Fields: Click 'Insert Merge Field', choose your target date column from the list, and place it into the desired location within your document.
- 5. Preview and Complete: Click 'View Merged Data' to verify all dates are displaying and formatting correctly, then click 'Merge to New Document' to generate your final output.

Frequently Asked Questions
What is a date formatting switch in a mail merge?
A formatting switch is a specific code added to a merge field (for example, \@ "dd-MMM-yyyy") that instructs the word processor on exactly how a date should display in the final document, regardless of its original visual appearance in the Excel source file.
Why do dates stored as text ignore mail merge switches?
Mail merge formatting switches are exclusively designed to format numeric date values. If a date is stored as text in Excel, the word processor treats it as a standard string of characters and cannot apply date-specific formatting rules to it.
How can I tell if my dates are stored as text in Excel?
By default, Excel aligns text values to the left side of a cell and numeric values (including real dates) to the right. If your dates are left-aligned and do not change when you apply a different date format from the Home tab, they are likely stored as text.




