+ Reply to Thread
Results 1 to 6 of 6

How to display negative (-) values?

  1. #1
    Registered User
    Join Date
    01-04-2007
    Posts
    5

    Question How to display negative (-) values?

    Hi All,

    I have this formula which calculates the % increase and decrease from previous week. I made it so that it would show everything in positive. how do i go about changing it, so that negative values show as negative?

    =IF((B5>B6),""&TEXT((((B5-B6)/B5)*100),"#,0.00")&"%",""&TEXT((((B6-B5)/B5)*100),"#,0.00")&"%")

    thanks a lot,
    Claire

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Do you mean when b6>b5?
    Just change your condition to =(if(b5<>b6.....

  3. #3
    Registered User
    Join Date
    01-04-2007
    Posts
    5
    hiya,

    thanks for such a quick reply..
    could you please show me where exactly i need to put the = within the formula?

    apologies for sounding stupid..but i am realy lost with these formulas.

    thanks
    C

  4. #4
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by seorocks
    hiya,

    thanks for such a quick reply..
    could you please show me where exactly i need to put the = within the formula?

    apologies for sounding stupid..but i am realy lost with these formulas.

    thanks
    C
    Hi,

    did you mean asin:

    =TEXT((B6-B5)/B5*100,"#,0.00")&"%"

    Better still is

    =(B5-B6)/B5

    and format the cell as Percentage

    hth
    ---
    Last edited by Bryan Hessey; 01-08-2007 at 07:19 AM.
    Si fractum non sit, noli id reficere.

  5. #5
    Registered User
    Join Date
    01-04-2007
    Posts
    5
    ur right.. silly me!
    why would I need that long formula if i no longer need to make both values positive? lol.. thanks a lot. the formula you wrote is a lot easier.. and i used the conditional formatting to make the negative values in red..

    thanks again

    C

  6. #6
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by seorocks
    ur right.. silly me!
    why would I need that long formula if i no longer need to make both values positive? lol.. thanks a lot. the formula you wrote is a lot easier.. and i used the conditional formatting to make the negative values in red..

    thanks again

    C
    good to see, and thanks for the response.

    ---

+ 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