+ Reply to Thread
Results 1 to 7 of 7

Issue: Custom Number Format to Display (thousands or dashes)

  1. #1
    Registered User
    Join Date
    03-18-2013
    Location
    Tasmania, Australia
    MS-Off Ver
    Excel 2007
    Posts
    95

    Issue: Custom Number Format to Display (thousands or dashes)

    I need a custom format to display numbers in thousands, but that if the result is zero or rounds down or up to zero it is displayed as a dash. Oh and negatives need to be displayed in (parenthases).....

    I currently have the following - [>=500]#,##0,;[<=-500](#,##0,);- which works perfectly other than for negatives that are between 0 and -500. These are displayed with a double dash i.e. --.

    So as an example the above format rule does the following.

    0 = - (correct)
    400 = - (correct)
    550 = 1 (correct)
    5550 = 6 (correct)
    55550 = 56 (correct)
    555550 = 556 (correct)
    5555550 = 5,556 (correct)
    -400 = -- (incorrect)
    -550 = (1) (correct)
    -5550 = (6) (correct)
    -55550 = (56) (correct)
    -555550 = (556) (correct)

    and so on etc.....

    Can anyone help???

  2. #2
    Registered User
    Join Date
    10-25-2012
    Location
    California, USA
    MS-Off Ver
    Excel 2007
    Posts
    71

    Re: Issue: Custom Number Format to Display (thousands or dashes)

    Following this from your duplicate post. I do not believe you will not be able to solve your problem with a custom number format. A solution is to instead create another column with a nest if statement. If your value is in Column B try this;

    Please Login or Register  to view this content.
    Then apply the Accounting number format with no decimals to the result.

    The reason custom format won't work is it is limited to three criteria.

  3. #3
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Issue: Custom Number Format to Display (thousands or dashes)

    untested but perhaps
    [>=500]#,##0,;[<=-500](#,##0,);"-";@

    Edit: nope that fails too. I think you'd have to use conditional formatting or a formula as already suggested
    Last edited by JosephP; 03-21-2013 at 04:56 AM.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  4. #4
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: Issue: Custom Number Format to Display (thousands or dashes)

    erm ... perhaps we have over complicated things?

    I have found the following Custom format cells seems to work:

    #,##0_);(#,##0);-_)
    together with (in column B) =ROUND(A1/1000,0)

    Have I missed something?

    Regards
    Alastair

  5. #5
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Issue: Custom Number Format to Display (thousands or dashes)

    well the op only asked for a custom format not a formula and a custom format but that was already suggested ;-)

  6. #6
    Registered User
    Join Date
    03-18-2013
    Location
    Tasmania, Australia
    MS-Off Ver
    Excel 2007
    Posts
    95

    Re: Issue: Custom Number Format to Display (thousands or dashes)

    I need the format for a number of largish tables with financial figures so unfortunately it is impracticle to include reference collumns... Part of the reason i wanted to do this was to get rid of the need for excessive rounding formulas etc.

    However! You have both put me on to something that works!

    Basically i have done the following.....

    1. Applied custom format to all cells #,##0,;(#,##0,); This rounds all numbers to the thousand and puts negatives with parenthesis..... Then
    2. Applied a conditional format to all cells that formats any cell between 500 & -500 with the number format "-";"-";"-";@

    Works perfectly!

  7. #7
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: Issue: Custom Number Format to Display (thousands or dashes)

    That's the strength of this forum - not only gives results, but ideas as well!

    Regards
    Alastair

+ 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