+ Reply to Thread
Results 1 to 6 of 6

How to create formula for if balance is negative

  1. #1
    Registered User
    Join Date
    11-28-2015
    Location
    Chilliwack, BC
    MS-Off Ver
    Office 365
    Posts
    39

    How to create formula for if balance is negative

    Hello all, I trying to create a formula to add d5=b5+c5 but if c5 is negative, d5 will still be $7500.00. Then d6=b6+c6 but the negative from c5 has to be subtracted from c6 (if c6 is positive). Gets real confusing when 2 months in a row show negatives. My goal is d- column will never be lower than b-column but will not increase if their is no positive commission on profit (column c) I've attached an example sheet to help explain what I'm after. Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: How to create formula for if balance is negative

    Hello,
    So, if C column is negative, D is 7500
    if C is positive, current percentage should add recent negative percentive of previous month(s)?
    So, I change month in A column into real date, formatted as "mmm" (A4 should be the same, but formatted as "Month" to displayed as "title"
    In D5:
    Please Login or Register  to view this content.
    Drag down
    See attachment
    Attached Files Attached Files
    Quang PT

  3. #3
    Registered User
    Join Date
    11-28-2015
    Location
    Chilliwack, BC
    MS-Off Ver
    Office 365
    Posts
    39

    Re: How to create formula for if balance is negative

    Thanks @bebo021999. Thanks for the help and it somewhat worked for me but there is some repairs needed. I have explained it in the attached sample sheet where it is not working for me. Hope it makes sense. Again, thanks in advance.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: How to create formula for if balance is negative

    This proposal employs two helper columns (D:E) which may be moved and/or hidden for aesthetic purposes.
    Column D is populated using: =IF(SUM(D3,C4)>=0,0,SUM(D3,C4))
    Column E is populated using: =IF(D3<0,SUM(C4,D3),C4)
    The final output is in column F and is populated using: =MAX(B$19,SUM(B$19,E4))
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    11-28-2015
    Location
    Chilliwack, BC
    MS-Off Ver
    Office 365
    Posts
    39

    Re: How to create formula for if balance is negative

    Thanks JeteMC. I have attached the book again with sheet #3. On it I have added some notes on a problem that I cannot seem to resolve. Please take a look at it. Otherwise your formulas work perfect. Thanks again!
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: How to create formula for if balance is negative

    From file > I have added all the formulas according to your recommendation. All worked well. Problem arises when I want to carry over any balance over to start of the new year is this will be an ongoing calculation. As you can see in cell I5, I have used cell I16 but that only works if it I16 is a positive balance. If I16 is a negative balance, I end up with column I and J that are way out. If you change B16 to a lower number to show a negative profit, that will show you what happens. Thanks
    When I enable editing I get a circular reference warning which makes sense as the value in cell I5 figures into the calculation for I16.
    My suggestion is to continue the calculations down the sheet instead of attempting to loop back to row 5.
    In the attached file cells A6:A7 are filled using 1/1/19 and 2/1/19 respectively and both are formatted mmmm y. Both cells are then selected and the fill handle is dragged down to A18. The formula are copied from row 17 to row 18 and when the value in B17 is changed to 20,000 I18 shows a value.
    Optionally the Averages and Totals rows are moved to the top of the sheet so that they stay in view. In order to keep the formulas current A5:L18 are converted into a table.
    Let us know if you have any questions.
    Attached Files Attached Files

+ 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] Sum if carrying over as a negative balance but I need it as a positive one - any ideas?
    By startuphelper in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-04-2015, 09:24 AM
  2. [SOLVED] How To Create Running Balance (Subtraction)
    By islandeeya in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-12-2014, 02:48 PM
  3. Topping up a negative balance and then determing what to order
    By moodhairboy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-12-2013, 01:17 AM
  4. Create running Balance
    By beachvbguy in forum Excel General
    Replies: 2
    Last Post: 01-23-2012, 09:24 AM
  5. Non-decimal arithmetic: old £ s d and a negative balance
    By jd_jd in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-19-2011, 01:51 PM
  6. [SOLVED] Time Accrual; Negative balance
    By lilsqueakyone in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-11-2005, 04:30 PM
  7. [SOLVED] create a formula in excel to prevnt negative
    By neil@snowandjones in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-14-2005, 02:05 PM

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