+ Reply to Thread
Results 1 to 5 of 5

Custom number formats in TEXT function

  1. #1
    MatthewB
    Guest

    Custom number formats in TEXT function

    I an using the TEXT function because I want to show a number in a cell
    without that number being picked up in SUM functions on the worksheet. I
    want the text to display with a dollar sign on the far left of the cell, with
    a space for parentheses, and the number on the far right. I'm having trouble
    getting the formatting right -- the dollar sign shows up just in front of the
    number.

    My formula is =TEXT('Sheet2'!F16," _($* #,##0_);_($* (#,##0)")

    I thought that the asterisk followed by a space would push the dollar sign
    all the way to the left. What is wrong? Thanks!

  2. #2
    Forum Contributor
    Join Date
    06-01-2006
    Posts
    324
    It only pushes it left if it is a number format..
    Google is your best friend!

  3. #3
    CLR
    Guest

    RE: Custom number formats in TEXT function

    Maybe this will perform as you wish............

    =TEXT(Sheet2!F16,"$_(#,##0_);$(#,##0)")

    Vaya con Dios,
    Chuck, CABGx3



    "MatthewB" wrote:

    > I an using the TEXT function because I want to show a number in a cell
    > without that number being picked up in SUM functions on the worksheet. I
    > want the text to display with a dollar sign on the far left of the cell, with
    > a space for parentheses, and the number on the far right. I'm having trouble
    > getting the formatting right -- the dollar sign shows up just in front of the
    > number.
    >
    > My formula is =TEXT('Sheet2'!F16," _($* #,##0_);_($* (#,##0)")
    >
    > I thought that the asterisk followed by a space would push the dollar sign
    > all the way to the left. What is wrong? Thanks!


  4. #4
    MatthewB
    Guest

    Re: Custom number formats in TEXT function

    I don't understand. This is in a function called TEXT. It couldn't possibly
    be in a number format.

    "Bearacade" wrote:

    >
    > It only pushes it left if it is a number format..
    >
    >
    > --
    > Bearacade
    >
    >
    > ------------------------------------------------------------------------
    > Bearacade's Profile: http://www.excelforum.com/member.php...o&userid=35016
    > View this thread: http://www.excelforum.com/showthread...hreadid=556542
    >
    >


  5. #5
    Forum Contributor
    Join Date
    06-01-2006
    Posts
    324
    The $ will only be push to the LEFT if the cell format is used in a "number" format. If you use it in a Text function, it won't 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