Create named absolute reference to a cell in a table?

macfuller

Active Member
Joined
Apr 30, 2014
Messages
319
Office Version
  1. 365
Platform
  1. Windows
I have a date table of financial indexes. Example of the S&P below (with some funky xl2bb remnant of the formula in there)...

S&P 500S&P ±%Date
4,401.67]-$E$16)/$E$16|nf:0.0%]0.0%14-Feb-22
4,384.65]-$E$16)/$E$16|nf:0.0%]-0.4%26-Feb-22
4,328.87]-$E$16)/$E$16|nf:0.0%]-1.7%5-Mar-22
4,575.52]-$E$16)/$E$16|nf:0.0%]3.9%28-Mar-22
4,392.59]-$E$16)/$E$16|nf:0.0%]-0.2%16-Apr-22
4,271.78]-$E$16)/$E$16|nf:0.0%]-3.0%23-Apr-22
4,123.34]-$E$16)/$E$16|nf:0.0%]-6.3%6-May-22
3,926.76]-$E$16)/$E$16|nf:0.0%]-10.8%18-May-22


The +/- column shows the change in the S&P from the first date I started tracking, in this case Feb 14 2022. The cell E16 has the value on that date, and subsequent cells take the S&P value on that date and track the variance using
=([@[S&P 500]]-$E$16)/$E$16

So is there a way to refer to that cell by some consistent name for formulas outside that table, or within the table if for some reason I chose to sort the table by another column than date? I have to use MINIFS or AGGREGATE functions to look up the earliest date and then XLOOKUP to get the S&P value for that date. If I'd like to base my +/- on some other date (e.g. the first tracking date of the current year) or add a column I have to modify the formulas in every row. It sure would be handy if I could have an absolute reference for it!

 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Not really! Excel tables have a lot of advantages, but they have some drawbacks too. A big one is that there's no good way to reference any row other than the one you're on (with @). There are some tricks you can do, like:

Book3
EKOPQWAA
15S&P 500S&P ±%DateS&P 500S&P ±%Date
164401.6702/14/20223926.76-0.107893145/18/2022
174384.65-0.0038672/26/20224123.34-0.063232825/6/2022
184328.87-0.0165393/5/20224271.78-0.029509254/23/2022
194575.520.03949643/28/20224392.59-0.002062854/16/2022
204392.59-0.0020634/16/20224575.520.0394963733/28/2022
214271.78-0.0295094/23/20224328.87-0.016539183/5/2022
224123.34-0.0632335/6/20224384.65-0.003866712/26/2022
233926.76-0.1078935/18/20224401.6702/14/2022
Sheet5
Cell Formulas
RangeFormula
K16:K23K16=LET(v,INDEX([S&P 500],1),([@[S&P 500]]-v)/v)
W16:W23W16=LET(v,INDEX([S&P 500],MATCH(MIN([Date]),[Date],0)),([@[S&P 500]]-v)/v)


LET will let you define your value just once, which will shorten the formula. And you can use INDEX([column],1) to get the first row. Or even INDEX([column],ROWS([column])) to get the last column. It only gets trickier from there.
 
Upvote 0
Solution
I would not see that as an issue related to using tables. A standard range will suffer exactly the same issue if you reference a row inside the sort range and then sort the range.
Also I would argue that the information will become almost meaningless after the sort when it is no longer obvious what your point of reference is.

Wouldn't you be better off making it much clearer and simpler eg

Book2
EFG
12Earliest Date14/02/2022
13Earliest Value4401.67
14
15S&P 500S&P ±%Date
164401.67014/02/2022
174384.65-0.0038667126/02/2022
184328.87-0.016539185/03/2022
194575.520.0394963728/03/2022
204392.59-0.0020628516/04/2022
214271.78-0.0295092523/04/2022
224123.34-0.063232826/05/2022
233926.76-0.1078931418/05/2022
Sheet2
Cell Formulas
RangeFormula
F12F12=MIN(Table1[Date])
F13F13=XLOOKUP($F$12,Table1[Date],Table1[S&P 500])
F16:F23F16=([@[S&P 500]]-$F$13)/$F$13
 
Upvote 0
Two helpful answers - thank you. Hard to choose which to mark as the answer, but I think Eric made the point first that there just ain't such a feature in Excel.

I track multiple equity indices, so that's currently 5 reference points to maintain under Alex's recommendation. That solution is effective but were I to add additional indices as well as Treasuries and FX exchange rates the redundancy of extracting reference values from 10+ columns bothers me :confused:.

Still, electrons are cheap (in the words of the great Chandoo)...
 
Upvote 0

Forum statistics

Threads
1,223,905
Messages
6,175,297
Members
452,633
Latest member
DougMo

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