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

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
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,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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