Getting rid of INDIRECT

fred3

New Member
Joined
May 1, 2011
Messages
39
I'm going to be adding columns in a fairly complex worksheet and want to get rid of column labels inside INDIRECT so that the formulas will remain relative references as columns are added.

I have this so far:

Code:
SUM(INDIRECT("R" & ROW()-X$4+1):INDIRECT(cell("ADDRESS",R7))

The ending point for the sum is already "fixed" and the column label "R" changes if columns are added ahead of column R.

But, the starting point for the sum is stuck on column R so the row number arithmetic can still happen.

How to change that part?

Thanks!
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
=sum(r7:index(r:r, row() - x$4 + 1))
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,885
Members
452,364
Latest member
springate

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