h1

Word: Change date format from Excel data

June 27, 2009

When you’re using an Excel spreadsheet for mail merge data in Word, any dates come in in the ‘native’ Excel date format even if you’ve changed the date format for the relevant cells in Excel. From what I can gather the ‘native’ Excel date format is m/dd/yyyy (e.g. 9/30/2009 for September 30, 2009).

If you want the date in the mail merged document to be displayed differently, e.g. dd MMMM yyyy (30 September 2009), then you have to add a switch to the mail merge field.

Here’s how you do it in Word 2003 (Word 2007 is probably the same, though I haven’t tested it):

  1. Insert the mail merge field for the date into the Word document as normal. It will look something like this (where StartDate is the name of the mail merge field in this example):
    date_format_mail_merge01
  2. Right-click on the mail merge field, and select Toggle Field Codes.
    date_format_mail_merge02
  3. Put your cursor after “StartDate” and before the closing } and add a space.
  4. Type in the switch: \@ “dd MMMM yyyy”
    date_format_mail_merge03
  5. Right-click on the mail merge field again, and select Toggle Field Codes.
  6. Save the document. The next time you run a mail merge, the date will be in the format you entered at Step 4.

This example shows just one date format switch — experiment with other combinations to get the date format you want. For example, “MMMM dd, yyyy” for September 30, 2009; “dd-mm-yy” for 30-9-09, etc.

You can buy me a coffee if this tip helped you Has this tip helped you? saved you time? saved your skin? You can thank me by clicking on the cup and buying me a coffee. (An E-Junkie shopping cart page will open where you can pay for my coffee via PayPal.)

6 comments

  1. You are the only one SHOWING how to change the date, so far the explanation didn’t means anything but your sample it was so easy.
    Thanks to the team.
    Pascale


  2. Thanks that a real help. this is the only place on the web i could find the answer and it works a treet!


  3. Hi, the sample was perfect… but now I have another issue…..I have a word merged document with more than one date fields, and some appear in English an another ones in Spanish… do you know if there is any instuction to select the language?

    hope you can help me….


  4. Sorry, I’ve never worked with any other language than English. That said, in Word 2003 you can select the entire document (Ctrl+A), then go to Tools > Languages > Set Language and choose the language. That might solve the Word problem; not sure if you can do anything like this in Excel.


  5. I’m having trouble getting it to merge the correct YEAR. My dates on my excel spread sheet are in 2008 and 2009, and it keeps putting them in my letters as 2004 or 2005. Help?


  6. Thank you! Word’s help is abysmally bad and doesn’t even mention this as far as I can tell. Putting the link on del.icio.us ;-)



Leave a Comment