Copying SUBTOTAL to different sized ranges

dbernart

New Member
Joined
Aug 4, 2003
Messages
34
I have a data in rows 1-3 with numbers in Column C. I have a subtotal in C4 that reads SUBTOTAL(9,C1:C3).

Once I add 5 new rows of data, I would like to be able to copy the formula in C4 to C10.....when you just copy, it becomes SUBTOTAL(9,C7:C9)....I would like it to be either SUBTOTAL(9,C5:C9) or SUBTOTAL(9,C4:C9)....either one would work. Right now, I have to edit the row numbers in the formula manually. I'm sure one of you Excel gods will have a simpler method!!!

Thanks!

postscript: OK, I've figured it out this far:
=subtotal(9,R[-1]C:......then some sort of activecell.xlUp function?
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,136,594
Messages
5,676,700
Members
419,644
Latest member
KeelsM

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
Top