Forum

Notifications
Clear all

Sum of dynamic range always ending one row above, WITHOUT using OFFSET

4 Posts
4 Users
0 Reactions
131 Views
(@lbkatlanticatd-com)
Posts: 1
New Member
Topic starter
 

I'm trying to move away from using OFFSET, having learned this is a volatile function, and hence likely a contributing reason that my many & large spreadsheets run slow, even after having invested in a new pc with plenty of RAM and speedy processors.

How can I write a formula that sums a (single column) range that always ends one row above my total row, WITHOUT using OFFSET([thiscell],-1,). I could of course determine a reference using ROW()-1, but it appears the answer to the question of whether the ROW() function is also volatile is still not definitively answered. Having read Mynda's recent post on the use of INDEX, I've been trying to come up with a formula involving this, thus far unsuccessfully.

I don't want to use named ranges, as I have a great many subtotals to calculate, across many columns / periods and for many areas, hence I don't want to use a myriad of names.

Any ideas would be greatly appreciated. Thanks

 
Posted : 19/01/2018 3:34 pm
Anders Sehlstedt
(@sehlsan)
Posts: 970
Prominent Member
 

Hello Lasse,

Without any sample file that shows how your data is setup one can only assume and that is quite often not so good. My first thought when reading your post was that your data is not in a tabular format and hence you are not using a Pivot Table, which would be my option of choice instead of wrangle around with nested formulas and such. If it is more or less so then I can recommend you to read Mynda's blog about setting up data in tabular format.

Any way, if you can provide us with a sample file it will be easier for all of us.

Br,

Anders

 
Posted : 19/01/2018 6:00 pm
(@shaowu459)
Posts: 44
Eminent Member
 

enter following formula in column A

=SUM(A$1:INDEX(A:A,ROW()-1))

 
Posted : 19/01/2018 9:11 pm
(@sunnykow)
Posts: 1417
Noble Member
 

Depending on your data, you could consider converting it into a Table and add a Total Row below it.

 
Posted : 19/01/2018 10:17 pm
Share: