+ Reply to Thread
Results 1 to 9 of 9

remove negative sign on cell format

  1. #1
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    696

    remove negative sign on cell format

    Hi,

    I have a cell format to display negative large numbers in bracket. However, when the value is below 1 million, there is negative sign in front of bracket.


    Format Cell : [<-999999999](#,###.00,,, "B");[<-999999](#.00,, "M");(#.00, "K")

    (5.00M) - OK
    -(500.00K) >> to remove negative sign


    can anyone help me?
    1. Thank those who have helped you by clicking the Star * below the post.
    2. Please mark your post [SOLVED] if it has been answered satisfactorily.

    Sincerely,
    Farid

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: remove negative sign on cell format

    How is this different from your thread here...
    https://www.excelforum.com/excel-for...ive-value.html
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: remove negative sign on cell format

    Hi FDbbins,

    The difference is the old thread does not display negative sign in bracket.

    The old thread has met the objective to display value in negative sign. That's why I have marked solved.

    can you help for this thread, Sir?

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: remove negative sign on cell format

    Add another Conditional formatting

    =(A1<0)*(A1>-999999)

    with custom number format

    0;(#.00, K);0

  5. #5
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: remove negative sign on cell format

    Hi Bo_RY,


    Thanks. Finally it works with 3 conditions

    =A1>0 [>999999999] #,###.00,,, "B";[>999999]#.00,, "M";#.00, "K"
    =A1<0 [<-999999999] (#,###.00,,, "B");[<-999999](#.00,, "M");(#.00, "K")
    =(A1<0)*(A1>-999999) 0;(#.00, K);0


    1 more issue, besides the above method I have use this format, [<=-1000000](#.00,,"M");[<=-1000](#.00,"K")
    It works for negative Million and Thousands only.

    However, When I modify and add Billions, excel not accepted the format
    [<=-1000000000](#,###.00,,,"B");[<=-1000000](#.00,,"M");[<=-1000](#.00,"K")

    Can you tell me what went wrong with the formula?

  6. #6
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    Germany
    MS-Off Ver
    365
    Posts
    490

    Re: remove negative sign on cell format

    You can only use two conditions this way.

    For more sophisticated solutions, you need to turn to conditional formatting.

  7. #7
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: remove negative sign on cell format

    Hi Raul,

    If the below format cannot be used, Microsoft should look into this matter and solve it for the next version release.
    [<=-1000000000](#,###.00,,,"B");[<=-1000000](#.00,,"M");[<=-1000](#.00,"K")



    Then, from where negative sign coming when the value in thousands also make me totally confused
    [<-999999999] (#,###.00,,, "B");[<-999999](#.00,, "M");(#.00, "K")


    anyway, thanks for clarification.

  8. #8
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    Germany
    MS-Off Ver
    365
    Posts
    490

    Re: remove negative sign on cell format

    Hi, I don't Microsoft will change this. Why should they?

    Complex formatting scenarios are simply not meant to be solved via custom number formats but specifically through conditional formatting.
    Conditional formatting has been improved significantly over the last 10-15 years (and custom number formats have not), so there's already a tool available to do what - I think - you're trying to achieve. (At least that would be Microsoft's natural response I assume.)
    The problem to me seems to that you wish to squeeze a lot functionality into a tool which is meant to provide only basic solutions.

    e.g.: custom number formats also provide the ability to change the font color but only with a very limited color palette, not with full RGB codes; for that you would need to turn to conditional formatting, too.

    Re your last question for: [<-999999999] (#,###.00,,, "B");[<-999999](#.00,, "M");(#.00, "K")
    The third condition is the one that applies to all other values, so it retains the sign depending on how you structure your thousands delimiters with the commas. It just reinforces the idea that custom number formats are not meant for such situations:
    with a format of (#.00, "K"):
    -1 becomes (0.00K) because it gets rounded/cut-off basically at zero, therefore it shows no sign (However, a format of e.g. (#.000,"K") would show -(.001K) - which I believe is consistent and logical)
    -10 becomes -(.01K) which is rounded/cut-off correctly, so retains it sign

    Hope this helps.

    Regards

  9. #9
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: remove negative sign on cell format

    Hi Raul,

    Thanks for very detailed explanation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Change the positive sign to negative sign in Pivot Table
    By jackson_hollon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-02-2020, 05:50 PM
  2. Replies: 8
    Last Post: 12-18-2016, 12:43 PM
  3. Replies: 4
    Last Post: 12-18-2016, 12:22 PM
  4. [SOLVED] need to format negative sign before number
    By neelpatel in forum Excel General
    Replies: 3
    Last Post: 09-27-2012, 02:07 PM
  5. Replies: 1
    Last Post: 04-26-2012, 12:48 AM
  6. negative numbers w/o negative sign
    By whtbullitt in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-31-2009, 05:07 AM

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