+ Reply to Thread
Results 1 to 3 of 3

Retaining formatting when using the text function

  1. #1
    Registered User
    Join Date
    11-02-2011
    Location
    Midwest, US
    MS-Off Ver
    Excel 2010
    Posts
    43

    Retaining formatting when using the text function

    I am trying to concatenate some text. I want to join A2 then D14, then B2, then E14 then C2. Think I have that in the right order. Anyway, I want to include in the sentence the text but also retain the percentage and number formats of D14 and E14.

    I got this far and got stuck, how do I continue the formula? Or is there another method to try?

    ="For the years of 2005-2010 overall a "&TEXT(E14,"0.00%")

    I included a sample and it should read like.

    For the years of 1995-2010 overall a 5.27% reduction was achieved for a total of $47,731.15 for the project
    Attached Files Attached Files

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Retaining formatting when using the text function

    Try this regular formula:
    Please Login or Register  to view this content.
    Note: I copied the number format by selecting cell D14, Format.Cells...Category: Custom....copy the Type: entry.
    The Type format is: _($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)

    I had to replace the "-" with \- so it could be included in the TEXT function.

    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Retaining formatting when using the text function

    Hi dotsofcolor,

    Incorporate the following changes in your existing formula and it will work well

    Please Login or Register  to view this content.
    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

+ 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