Forum Discussion

Carl_61's avatar
Carl_61
Iron Contributor
Dec 08, 2024

Mail Merge Dates Issue

I have an Excel Sheet that includes dates.  I have created a Word Mail Merge Document that includes the merging of dates and other information from the Excel Sheet. In the merge, all data other than the dates are merging correctly.  The dates are merging in as numbers, regardless of switches.  I do not understand why I am having so many problems with this date issue.  The date clearly shows as a date in Excel yet its merging in as numbers.  No matter what I try, I cannot get the Date to merge in as the Date shown in Excel.

How can I make this work.

Carl

  • Did you make the merge field look similar to this:

    { MERGEFIELD DateField \@ "MM/dd/yyyy" }

  • richbrooksmct's avatar
    richbrooksmct
    Copper Contributor

    Excel dates are just numbers (the number of days since Dec 31, 1899)   So when you write "Date shown in Excel", the phrase is dependent upon that format you are displaying that number.

    So, in Mail Merge, you can also set the number of the date in a specific format.   From a fellow MCT page, here are some examples.

     

    Field Code   Displayed Results

    { MERGEFIELD Date \@ “dddd, MMMM d, yyyy” }  Saturday, July 9, 2022

    { MERGEFIELD Date \@ “MM/dd/yyyy” }  07/09/2022

    { MERGEFIELD Date \@ “M-d-yy” }  7-9-22

    { MERGEFIELD Date \@ “MMMM d, yyyy” }  July 9, 2022

    https://thesoftwarepro.com/date-text-mail-merge-formatting-in-word-document/

    And I just saw Han's reply.   Go with his

     

  • Try referring this:

     

    1. Check Excel Date Formatting:
      • Ensure that the date column in your Excel sheet is formatted as a date. Even if it appears as a date, Excel might still treat it as a number.
    2. Use Dynamic Data Exchange (DDE):
      • Using DDE can help maintain the formatting from Excel to Word. To enable DDE:
        1. In Word, go to File > Options > Advanced.
        2. Scroll down to the General section and check the box for Confirm file format conversion on open.
        3. Start the Mail Merge process again. When selecting your Excel file, a dialog box will appear. Choose MS Excel Worksheets via DDE.
    3. Apply a Date Format Switch in Word:
      • You can add a switch to the merge field to format the date correctly:
        1. In your Word document, press Alt + F9 to display the field codes.
        2. Locate the date merge field, which will look something like { MERGEFIELD YourDateField }.
        3. Modify it to include a date format switch, such as { MERGEFIELD YourDateField \@ "dd MMMM yyyy" }.
        4. Press F9 to update the field and Alt + F9 again to toggle back to the normal view.
    4. Refresh Data Source Connection:
      • Sometimes, refreshing the connection between Word and Excel can help:
        1. Go to the Mailings tab in Word.
        2. Click Select Recipients and choose Use an Existing List.
        3. Re-select your Excel file.
    5. Check Regional Settings:
      • Ensure that the regional settings in both Excel and Word are consistent, as differences can cause formatting issues.

Resources