Share via

Create a total formula with variable input above

Anonymous
2011-01-23T12:32:45+00:00

Excel 2003 – Statement Totals formula problem

Should be easy, but just can’t figure it out!

I have 3 columns – Debit, Credit, Balance. The Balance column holds a balance whenever I send out a statement (variable timing), which equals Previous Balance plus any Debits incurred since the previous balance less any Credits incurred since the previous balance. Simple.

I’d like to make this an automatic formula that can be included in a cut/paste of a Total row showing Balance Due. How can I translate this into a formula?

I can easily do this if I keep a running balance, but haven’t worked out how to do it otherwise… hope you can help.

Debit       Credit       Balance

      Balance Due          50.00

10.00     

 5.00

                10.00

       Balance Due         55.00

 2.00

 6.00

 8.00          

                 20.00

         Balance Due       51.00 - how to automate balance due with variable data above?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

6 answers

Sort by: Most helpful
  1. Anonymous
    2011-01-23T16:19:22+00:00

    Yes, this works, and better, I can see the logic. But I was hoping to be able to tally from the prior balance rather than the entire history - forgot to include that. So, there's no absolute cell location to work from, only relative to the current balance cell. So, if I could work out how to use the current balance cell minus 1 until I hit the prior balance, then add it, and add any debit/credits between the two balance cells, I'd have it. Any joy?

    An inelegant solution would be to use a hidden column for a running total, I suppose? But I'd far rather the former...

    Thanks for your support!

    Is the term "Balance Due" an actual cell entry?

    I have a formula that will put the balance at every instance of a credit. Like this:

    Debit Credit Bal
    50
    10
    5
    10 55
    2
    6
    8
    20 51
    10
    10
    10
    2
    3
    10 76
    10 66
    5 61
    1
    10 52

    Is that something you can use?

    --

    Biff

    Microsoft Excel MVP

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2011-01-23T16:12:25+00:00

    Thanks very much for your reply, but I'd rather not have a running total if I can avoid it.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2011-01-23T16:09:21+00:00

    Yes, this works, and better, I can see the logic. But I was hoping to be able to tally from the prior balance rather than the entire history - forgot to include that. So, there's no absolute cell location to work from, only relative to the current balance cell. So, if I could work out how to use the current balance cell minus 1 until I hit the prior balance, then add it, and add any debit/credits between the two balance cells, I'd have it. Any joy?

    An inelegant solution would be to use a hidden column for a running total, I suppose? But I'd far rather the former...

    Thanks for your support!

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2011-01-23T13:13:33+00:00

    Hi,

    lets use "Banalce" coulumn as a "Balance Due" and insert running total with "Date" parameter also.

    A                                    B                 C               D

    1 Date                           Debit           Credit     Balance Due

    2 Balance Due                                                        50

    3 21/01/2011                  10                             =D2+B3-C3  (i.e 60)

    4 21/01/2011                    5                             =D3+B4-C4  (i.e 65)

    5 22/01/2011                                      10         =D4+B5-C5  (i.e 55)


    Hiren

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2011-01-23T13:13:26+00:00

    Assuming that your initial balance of $50 is in C2 and that Debits are in column A, with $10 in A3, and credits in column B also potentially starting at row 3: try this formula on the Balance Due rows, try this formula where you now have 55 and 51:

    =C$2+SUM(INDIRECT("A$3:A" & ROW()-1))-SUM(INDIRECT("B$3:B" & ROW()-1))


    I am free because I know that I alone am morally responsible for everything I do. R.A. Heinlein

    Was this answer helpful?

    0 comments No comments