Forum Discussion

calof1's avatar
calof1
Iron Contributor
Feb 24, 2020

Formula to calculate between "Closing Balances"

Hi,

 

I have a sheet which uses formula to calculate balance for repayments and draw for a facility. 

Each period can have a different number of draws & repayments, but i wish to have a summary balances for the end of each period.

 

Is there a formula i can add to each column to use one formula during the period, then use a sum formula between the rows for the period? Attached is an example.

 

 

I believe is is a IF formula, but is the one to use something like term "Closing Balance" as the reference on where to calculate between?

 

Thanks for any assistance.

 

Kind regards,

 

2 Replies

  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Platinum Contributor

    calof1 

    See attached. I have entered this formula in I6, and then copy/paste it to P6, I9 and P9. You can the same for every following period.

    =SUMIF($A:$A,$A5,I:I)

    Personally, I would favour an approach where you just list all draws and repayments in one continuous list and than insert sub-totals (Data / Subtotal), whenever you needed/desired. This can be done with a few mouse-clicks and does not mess-up your data or formulae.  This is demonstrated in the second sheet. Here, I also simplified some of your formulae, by eliminating most of the IF functions.

Resources