• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Dynamic Running Total?

Eloise T

Active Member
Each week I add 100 to 200 rows of new data to the bottom of an ever-growing spreadsheet that’s currently over 12,000 rows long by 10 columns wide.

Column H contains a number that I need to maintain a running total.

I keep the running total at the top of the spreadsheet “inside” the top “frozen pane” to make it visible without having to scroll to the bottom over 12,000+ rows down.

Currently the formula I use is as simple as =SUM( H5 : H12357 )

I’m sure I could run the second parameter to a huge number and increase it as needed, but is there a way to improve the formula to dynamically change when rows are added to maintain the running total of the entire Column H?
 

Attachments

  • Chandoo - Dynamic running total.xlsx
    10.7 KB · Views: 5
Hi:

Use the following formula
Code:
=SUM(OFFSET(H5,,,COUNT(H5:H1048576),1))

Thanks
Thank you. Now I have to figure out why it works! ...as well as the formula created by shrivallabha and method created by Khalid NGO! :rolleyes: :rolleyes: :rolleyes:
 
Last edited:
Hi Eloise T,

Or you can convert your data into Table, and use:

=SUM(Table1[Cost])

Regards,
What is the procedure to convert the data in Column H into a table?
I've started it in the attached file.
 

Attachments

  • Chandoo - Dynamic running total.xlsx
    11.8 KB · Views: 9
Last edited:
How would I convert the data in Column H into a table?

Make a Table of your complete range...

Select your range A4:H4 or even a single cell A4, go to Insert > Table.

Excel will automatically select your range.
Check mark "My table has headers"

Regards,
 
What is the procedure to convert the data in Column H into a table?
I've started it in the attached file.
I posted before you edited...

I think you should make a complete range Table i/o single column.

Table option > Resize Table > Change the Range =$A$4:$H$7 (adjust accordingly)

and note: Your Table Name is "Table3" not "Table1"

=SUM(Table3[Cost])

Regards,
 
I posted before you edited...

I think you should make a complete range Table i/o single column.

Table option > Resize Table > Change the Range =$A$4:$H$7 (adjust accordingly)

and note: Your Table Name is "Table3" not "Table1"

=SUM(Table3[Cost])

Regards,
How did you know it is Table 3 vs. Table 1? Where is it shown?
 
Amazing! Clever those Chinese! :DD I learn something new every day! In fact, the more I learn in Excel, the more I realize how little I know about it.


...and Thank YOU!
 
Back
Top