How to make SUBTOTAL formula range to automatically extend to include newly added rows

Sean15

Well-known Member
Joined
Jun 25, 2005
Messages
719
Office Version
  1. 2010
Platform
  1. Windows
Hi:

This formula:

=SUBTOTAL(9,I2:I4489)

does not auto extend to include newly added rows, example of I added row 4490

Could you help please?


Regards,

Sean
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
If you add your new row between the range I2:I4489 (instead of adding the new row AFTER that range), it will automatically grow to increase it.
I will sometimes place a blank row at the end of my data and insert above this blank row to ensure that happens, while always adding new rows at the bottom.

If that is not possible, please answer the following:
- In your example above, what cell are you placing that formula in?
- Is there any other data currently under I4489?
 
Upvote 0
If that is not possible, please answer the following:
- In your example above, what cell are you placing that formula in?
- Is there any other data currently under I4489?

Relevant questions

M.
 
Upvote 0
Hi:

formula is in I4490

Data ends at I4489


I put this formula together using old Excel notes:

=SUBTOTAL(9,I1:OFFSET(I4490,-1,0))

It seems to work but I can't explain how it does.

Thanks for your help.

Regards,

Sean
 
Upvote 0
The key is this part right here:
OFFSET(I4490,-1,0))

Since you are placing the formula in cell I4490, as you insert rows and move the formula down, that range reference will move with it.
And the Offset function is telling it to use the row just above the range address in that formula (making it dynamic).
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,162
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top