Forum Discussion
Gene Ciaudella
Jul 06, 2018Copper Contributor
How to move a sum to another cell?
Hi. I'm quite new to Excel so please pardon my lack of knowledge..
I'm attempting to customize an existing form so that the sum that is automatically totaled at the bottom of the statement is carried up to the Balance Due cell. Taking into account that the number of rows would be varied from statement to statement. Any help would be appreciated.
5 Replies
Sort By
- Matt MickleBronze Contributor
Try this formula:
=SUM($F$11:$F$26)
This will allow for you to expand the line items up to 15.... You should change the bottom number to whatever you think the max amount of line items would be...
If you supply a copy of the spreadsheet I'll be happy to make the adjustment for you.
Hello,
I'm not sure that Matt's approach will give you the correct answer. The screenshot shows a statement where the Balance column shows the actual balance in the last populated row, taking into account the previous row's balance, adding the charges and subtracting the credits.
Summing all values in the Balance column will give you the wrong result. In your screenshot, the "Balance Due" should be 20, and not the sum of all numbers in the column.
A formula to show the last value of the Balance column could be something like this:
=INDEX(Table1[ACCOUNT BALANCE],MATCH(99^99,Table1[ACCOUNT BALANCE],1))
If the name of your table is not Table1, please adjust it in the formula. This formula will always use all rows in the table, so you don't need address more rows that you currently have.
- Matt MickleBronze Contributor
Hey Ingeborg-
Thank you for catching that issue. I didn't notice that at first glance. Here is another formula that will also work in this scenario:
=LOOKUP(2,1/(Table1[Account Balance]<>""),Table1[Account Balance])
- Gene CiaudellaCopper Contributor
All set. Thank you kindly