+ Reply to Thread
Results 1 to 6 of 6

mail merge from excel whilst maintaining format

  1. #1
    Registered User
    Join Date
    05-26-2009
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    99

    mail merge from excel whilst maintaining format

    i need to create a mail merge in word which uses data in an excel spreadsheet.

    some of the cells are currently set as a date and others as a currency.

    is there a way to maintain these formats when its merged into word?

    at the moment it moves dates into numbers and currency into numbers without commas and pound signs.


    many thanks

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: mail merge from excel whilst maintaining format

    Do the formatting in excel by using a helper column to format the values.
    So if A2 contains a date use a helper column with the formula

    =TEXT(A2,"dd/mmm/yyyy")

    Mail merge using the text helper column
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: mail merge from excel whilst maintaining format

    Alternatively, you can use the formatting switches in the mergefield in Word

    - Hit ALT-F9 to show all field codes
    - for a merge field called Date1, you'll see something like

    { MERGEFIELD "Date1" }

    - Apply formatting to this field using the time-date switch \@ and specify your date format in double quotes. Note that you must use capital M for month. To display your date as 24-Dec 2009, for example, use the switch

    { MERGEFIELD "Date1" \@ "dd-MMM yyyy"}

    - for currency values, use the numeric switch \# followed by the number format (no double quotes required). Something like

    { MERGEFIELD "amount1" \# $#,###.00 }

    If you want to ensure that the merge field has the same font and size, add the \* MERGEFORMAT switch.

    HTH

  4. #4
    Registered User
    Join Date
    03-26-2007
    Posts
    5

    Re: mail merge from excel whilst maintaining format

    This is exactly the same problem I'm having, although I have no idea what format switches are (I use the mail merge wizard for mail merges), and unfortunately my Excel Help is broken at the moment and won't be reinstalled until next week.

    I did manage to get a workaround to work by putting the ' in front of all the data, but this is OK if there's not much data...but I've got a much bigger spreadsheet now and can't work out how to put the ' automatically in a whole column.

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: mail merge from excel whilst maintaining format

    The mergefield stuff is in Word not excel.
    http://word.mvps.org/FAQs/Mailmerge.htm

  6. #6
    Registered User
    Join Date
    03-26-2007
    Posts
    5

    Re: mail merge from excel whilst maintaining format

    Ah, Word Help is busted too, so thanks very much for that link. I'll give it ago tomorrow when I'm back at work.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1