Absolute cell references when range changes

travellerva

New Member
Joined
Mar 31, 2012
Messages
42
Office Version
  1. 365
Platform
  1. MacOS
I have a table of dates and values and several formulae that operate on the data in the table. When I insert a new row in the table, I want the formulas to retain the absolute cell addresses. I can't use RC format as the workbook is extensive and uses the common A1 reference format elsewhere. This is not a VBA question but rather a referencing question for formulas in the worksheet.

Thanks for any help.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

I have a table ..
A formal Excel table (ListObject created via Ctrl+T or Insert ribbon tab -> Table) or just a normal worksheet range that you are referring to as a table?

.. and several formulae that operate on the data in the table.
Could we have examples of those formulas?

Better, could we have an XL2BB mini sheet with sample table and formulas and explain again in relation to the mini sheet?
 
Upvote 0
Thank you for your reply. It does not seem possible to load XL2BB in my Excel for Mac (365 V16.59). There is no File>Options; it is in Insert>Add-ins. When there, there is no Browse option so locating the XL2BB.xlsm file is not possible. Double-clicking the XL2BB.xlsm file results in no visible action and XL2BB does not appear in the My Add-Ins list.

An example of the formula I'm using is:
=(SUMPRODUCT($B$8:$G$8,$K$4:$P$4)/SUMPRODUCT($B$30:$G$30,$K$4:$P$4))-1

After inserting a row into RC 8, the formula becomes:
=(SUMPRODUCT($B$9:$G$9,$K$4:$P$4)/SUMPRODUCT($B$31:$G$31,$K$4:$P$4))-1

I need the formula to remain as B8:G8 etc. and B30:G30 etc.

I've tried using relative references such as $B8:$G8 but the same result occurs after the row insert.

Does that help explain it better?

Thanks.
 
Upvote 0
Hi
Try
Excel Formula:
=(SUMPRODUCT(indirect("B8:G8"),$K$4:$P$4)/SUMPRODUCT(indirect("B30:G30"),$K$4:$P$4))-1
 
Upvote 0
This is the table I referred to: Formula is in B1


0.018​
24.3725​
168.72​
19.3204​
14.344​
0​
0.532​
5/25/2397.49414.61174.2071.44
1​
26.05
5/24/2397.85411.16175.5471.54
1​
26.06
5/23/2398.10414.13177.4872.60
1​
26.62
5/22/2397.99418.76178.2673.69
1​
26.88
5/19/2398.08418.58176.0673.66
1​
26.71
5/18/2398.30419.23177.2273.23
1​
26.76
5/17/2398.76415.15176.2273.34
1​
26.90
5/16/2398.91410.26172.2773.00
1​
26.54
5/15/2399.14412.93174.8673.70
1​
27.22
5/12/2399.39411.62172.7273.14
1​
27.25
5/11/2399.95412.16173.0373.27
1​
27.26
5/10/2399.65412.80174.4173.45
1​
27.56
5/9/2399.01410.93173.5373.60
1​
27.29
5/8/2399.10412.80174.0673.90
1​
27.42
5/5/2399.65412.56174.4573.88
1​
27.58
5/4/2399.97405.21170.4472.81
1​
27.13
5/3/23100.09407.93172.3872.96
1​
27.01
5/2/2399.65410.86171.6872.76
1​
27.48
5/1/2398.69415.53175.3573.51
1​
27.48
4/28/2399.96415.93175.2073.62
1​
27.70
4/27/2399.45412.41173.6873.65
1​
27.35
4/26/2399.81404.34171.3972.74
1​
26.74
4/25/23100.18406.17173.0872.79
1​
27.00
 
Upvote 0
It does not seem possible to load XL2BB in my Excel for Mac (365 V16.59). There is no File>Options;
XL2BB does work with Excel 365 for Mac. I don't use a Mac, but according to this page, instead of File>Options try Tools>Excel Add-ins
Also, please update your Account details as requested above to show 365 for Mac as your version.

You also did not address my question about formal table v normal range, but see if this works. I would avoid the volatile function INDIRECT as an option if possible. I think that this non-volatile option should do the same job for you.
Excel Formula:
=(SUMPRODUCT(INDEX(B:G,8,0),$K$4:$P$4)/SUMPRODUCT(INDEX(B:G,30,0),$K$4:$P$4))-1
 
Upvote 0

Forum statistics

Threads
1,215,091
Messages
6,123,062
Members
449,089
Latest member
ikke

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