+ Reply to Thread
Results 1 to 5 of 5

Formatting a number within a sentence

  1. #1
    Registered User
    Join Date
    02-09-2007
    Posts
    11

    Formatting a number within a sentence

    Is there a way to format a number within a sentence? i.e.

    In cell A1 I have 2,000 entered and formatted as a number. In cell A2 I type in ="How can I format "&A1&" ?"

    When I do this, the result in A2 is How can I format 2000?

    Is there a way to format the 2000 to show the thousand separator comma? If the number were -2,000 instead, is there a way to show both the comma and parentheses around the number? (without putting the parentheses manually into the formula)?

    Thanks in advance
    Last edited by NBVC; 06-22-2009 at 08:11 AM.

  2. #2
    Forum Contributor kraljb's Avatar
    Join Date
    05-26-2004
    Location
    Illinois
    MS-Off Ver
    2007 (recent change)
    Posts
    256

    Re: Formatting a number within a sentence

    With use of the TEXT function you can definetly do what you are looking to do.

    Please Login or Register  to view this content.
    Hope that helps...
    John
    "I don't know what I don't know"

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formatting a number within a sentence

    Try:

    ="How can I format "&TEXT(A1,"#,###")&" ?"
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    02-09-2007
    Posts
    11

    Re: Formatting a number within a sentence

    Great, thanks for the help.

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formatting a number within a sentence

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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