Changing cell reference

EddieL

New Member
Joined
Jan 20, 2019
Messages
5
Hi All

I have a total in a cell using the following formula:

=SUM(INDIRECT("W97:W"&ROW()-1))

The formula is written that way so that if extra rows are added after 97, the total would include the added rows. The problem I have is that I have a link from another spreadsheet which references this total, and when rows are added the reference to this total obviously changes. Is there any way of my link following the cell containing the total?

Any help would be much appreciated.

EddieL
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
One way..
You could assign a RangeName to the one-cell formula - "=SUM(INDIRECT("W97:W"&ROW()-1))" and Call it "MyTotal". That will keep track of it regardless os where it gets moved.

But change the Other Formula on the other spreadsheet to refer to "MyTotal" versus the Cell Reference/ HTH; Jim
 
Upvote 0
Hi Jim

Thanks for your suggestion, but the portion of ROW()-1 in the formula doesn't show which cell this value is in. It actually returns 0 not the value in the cell.
 
Upvote 0
I'm surprised that doesn't work since you would be naming the cell with the formula that produces the results. Hummmm...
Thanks for your reply.
Jim
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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