+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    11-13-2009
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    2

    Convert Cell Formats into the Cell's Text

    I want to import a workbook into a mail merge document and the currency formating doesn't come through. Is there a formula I could implement to change the text in a cell from "1234567.89" to read "$1,234,567.89" so it appears that way in the mail merge?

  2. #2
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,042

    Re: Convert Cell Formats into the Cell's Text

    you can use the formatting switches in the mergefield in Word

    - Hit ALT-F9 to show all field codes

    find your field, for example if it is called "amount", use this format switch

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

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

    hth
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

  3. #3
    Forum Moderator shg's Avatar
    Join Date
    06-21-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007
    Posts
    25,137

    Re: Convert Cell Formats into the Cell's Text

    The formatting for mailmerge fields is applied as field switches in the mergefield in Word.

    See for example,

    http://office.microsoft.com/en-us/wo...871801033.aspx

    http://office.microsoft.com/en-us/wo...CH061047321033

    http://office.microsoft.com/en-us/wo...CH061047321033

    EDIT: Must have been snoozing ...
    Last edited by shg; 11-13-2009 at 07:40 PM.
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    11-13-2009
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Convert Cell Formats into the Cell's Text

    Great. Thank you both. I got it working.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0