+ Reply to Thread
Results 1 to 7 of 7

Running Balance problem

  1. #1
    Forum Contributor
    Join Date
    12-04-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    127

    Running Balance problem

    Hello,

    Im hoping there will be a simple fix for this one:

    I have a running balance spreadsheet with the data as follows:

    Row 1 - Headers

    A2 - Date
    B2 - Item
    C2 - Credit
    D2 - Debit
    E2 - Balance

    In column E I have the following formula:

    First row: =SUM(C6-D6)
    Second row (copied down): =SUM(E6,C7-D7)


    This all works great, until I delete a row or shift cells down etc.

    what is wrong? can anyone help me?

    I have attached a sample.


    Hope someone can help me


    regards,

    Michael
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Running Balance problem

    Hi Michael,

    One way would be in E6 and copied down
    Please Login or Register  to view this content.
    Rgds
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    12-04-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    127

    Re: Running Balance problem

    Hello,

    I tried your suggestion, but it doesnt appear to work how I want it to.

    Using your method, the Balance column (E) now shows the amount that has been credited or debited on that row, rather than a running total / balance from previous rows.


    I have attached the spreadsheet for your viewing.
    Attached Files Attached Files

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Running Balance problem

    in e7 =sum(index(e:e,row()-1,1),c7-d7)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Forum Contributor
    Join Date
    12-04-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    127

    Re: Running Balance problem

    hello, ive had a little play around.

    first row, i used your formula: =OFFSET(E6,-1,1)+C6-D6

    then second row (copied down) I used: =OFFSET(E7,-1,0)+C7-D7

    I changed the 1 to a 0 in the offset formula and it appears to work now.


    does this seem logical to everyone else?

  6. #6
    Registered User
    Join Date
    02-06-2010
    Location
    Hyderabad
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Running Balance problem

    Try the following formula
    =SUM(C$6:C6)-SUM(D$6:D6)
    copy the formula towards down

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Running Balance problem

    Hi,

    Sorry, I had the column offset wrong. Try instead

    Please Login or Register  to view this content.
    You can do away with the IF() test, (which is only necessary for the first row if you make the first row a blank (hidden if necceasary) row,

    Rgds

+ 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