+ Reply to Thread
Results 1 to 17 of 17

Formula Not Displaying Negative Values Correctly

  1. #1
    Forum Contributor
    Join Date
    04-09-2014
    Location
    Derby
    MS-Off Ver
    Office 2013 - For my sins
    Posts
    122

    Formula Not Displaying Negative Values Correctly

    Hey all,

    I have written 3 formulas that all work perfectly and show the correct value on the formula builder - screenshot below.

    Screenshot 2023-08-04 at 15.07.06.pngScreenshot 2023-08-04 at 15.07.13.png

    As you can see on the bottom: Result: -1834.94 & -820.4 - that's the correct numbers, but on my spreadsheet the both show ?0.00.

    I've tried changing the number format, but no joy..

    Any help would be really appreciated, thanks.

    Question asked here also: https://www.mrexcel.com/board/thread...ectly.1242561/
    Last edited by Frankinstyyn; 08-04-2023 at 10:32 AM.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,938

    Re: Formula Not Displaying Negative Values Correctly

    Can we shee the spreadsheet? A desensitised version of it.

    Can't really diagnose the issue without it.

    BSB

  3. #3
    Forum Contributor
    Join Date
    04-09-2014
    Location
    Derby
    MS-Off Ver
    Office 2013 - For my sins
    Posts
    122

    Re: Formula Not Displaying Negative Values Correctly

    Sure!

    Hoping it's attached
    Attached Files Attached Files
    Last edited by AliGW; 08-04-2023 at 11:58 AM. Reason: Please do NOT quote unnecessarily!

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,834

    Re: Formula Not Displaying Negative Values Correctly

    You have circular references: hence the zero result

    e.g in N4

    =IF(N4<0,0,SUM(H4-B4))

    Similar in O4
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  5. #5
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,938

    Re: Formula Not Displaying Negative Values Correctly

    Your formula in N4 references N4, which causes a circular reference and is the cause of the problem.

    Could you explain exactly what it is you're trying to achieve with these formulas?

    BSB

  6. #6
    Forum Contributor
    Join Date
    04-09-2014
    Location
    Derby
    MS-Off Ver
    Office 2013 - For my sins
    Posts
    122

    Re: Formula Not Displaying Negative Values Correctly

    This is what I'm trying to get at....

    If the value of N4 is above 0, show 0 and take the remainder off O4 and show me if negative
    If the value of O4 is above 0, show 0 and take the remainder off P4 and show me if negative

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,773

    Re: Formula Not Displaying Negative Values Correctly

    You can't have a formula and a manually-entered value in the same cell (N4).

    Why not just this in N4 copied across?

    =H4-B4

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    N
    O
    P
    Q
    R
    3
    One
    Two
    Three
    Four
    Total
    4
    £100.00
    -£100.00
    -£100.00
    £0.00
    -£100.00
    Sheet: Sheet1
    Last edited by AliGW; 08-04-2023 at 11:20 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  8. #8
    Forum Contributor
    Join Date
    04-09-2014
    Location
    Derby
    MS-Off Ver
    Office 2013 - For my sins
    Posts
    122

    Re: Formula Not Displaying Negative Values Correctly

    The value in N4 does a calculation from the left side of spreadsheet, and anything above 0 should be carried across to O4 and taken off that amount
    Last edited by AliGW; 08-04-2023 at 11:58 AM. Reason: Please do NOT quote unnecessarily!

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,834

    Re: Formula Not Displaying Negative Values Correctly

    Try

    in N4

    =SUM($H$4:H4)-SUM($B$4:B4)

    copy across to Q

    then R4=Q4

  10. #10
    Forum Contributor
    Join Date
    04-09-2014
    Location
    Derby
    MS-Off Ver
    Office 2013 - For my sins
    Posts
    122

    Re: Formula Not Displaying Negative Values Correctly

    This works fine, but I want anything above 0 to be deducted from the next row.
    Last edited by AliGW; 08-04-2023 at 11:58 AM. Reason: Please do NOT quote unnecessarily!

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,773

    Re: Formula Not Displaying Negative Values Correctly

    Show us the results you want, NOT a non-working formula.

  12. #12
    Forum Contributor
    Join Date
    04-09-2014
    Location
    Derby
    MS-Off Ver
    Office 2013 - For my sins
    Posts
    122

    Re: Formula Not Displaying Negative Values Correctly

    I want N4 to calculate H4-B4. If that value is above 0, take everything above 0 (profit) and take that off O4 - but show me 0
    Then O4 would calculate N4(anything above 0)+I4-C4, and anything above 0 (profit) to be taken off P4

    That would then give me a profit/break even number

    The overall goal is check I'm breaking even for One, then profits from One go into Two, then everything else that's 'profit' should be deducted from Three

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,773

    Re: Formula Not Displaying Negative Values Correctly

    Please show us the results you want in cells N4 to R4 - put them in manually.

  14. #14
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,834

    Re: Formula Not Displaying Negative Values Correctly

    N4=300-200=100


    O4=100-200=-100 + N4 (100) =0

    This what the formula does.


  15. #15
    Forum Contributor
    Join Date
    04-09-2014
    Location
    Derby
    MS-Off Ver
    Office 2013 - For my sins
    Posts
    122

    Re: Formula Not Displaying Negative Values Correctly

    Quote Originally Posted by AliGW View Post
    Please show us the results you want in cells N4 to R4 - put them in manually.
    Ahh, understood..

    Here is what I would like to see
    Attached Images Attached Images

  16. #16
    Forum Contributor
    Join Date
    04-09-2014
    Location
    Derby
    MS-Off Ver
    Office 2013 - For my sins
    Posts
    122

    Re: Formula Not Displaying Negative Values Correctly

    Quote Originally Posted by JohnTopley View Post
    N4=300-200=100


    O4=100-200=-100 + N4 (100) =0

    This what the formula does.

    Correct, the formula does the maths correctly, but I want to see 0 in the cell, not anything above 0

  17. #17
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,834

    Re: Formula Not Displaying Negative Values Correctly

    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Textbox negative values not showing correctly
    By Ochimus in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-07-2019, 03:16 AM
  2. [SOLVED] VBA Formula not displaying correctly
    By CaptMac in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2018, 04:14 AM
  3. Replies: 2
    Last Post: 09-10-2014, 10:55 AM
  4. [SOLVED] Negative or zero values cannot be plotted correctly on log charts
    By NTE in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 03-28-2012, 11:32 AM
  5. Displaying negative values in a cell but calculating these as 0
    By janschepens in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-05-2011, 08:02 AM
  6. Replies: 1
    Last Post: 08-18-2009, 07:35 AM
  7. displaying negative values
    By cfuller in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 06-23-2006, 06:10 PM

Tags for this Thread

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