Relative Column Referencing in a Structured Table

sfpowell

Board Regular
Joined
Mar 30, 2009
Messages
82
I was helping a colleague build a formula inside of a structured table. Part of the formula included a reference to a cell in a different column in the same row like [@[SiteID]]. When we copied that formula to one column over to the right, still in the same table, the reference of [@[SiteID]] changed to one column over to the right of it like [@[Address]]. Throughout the formula it acted the same as if we used relative referencing in a regular formula. It's as we we had the formula '=A1' in cell C1 and then copied it to D1 to result in '=B1'. I didn't even know that Excel could do relative referencing within a structured table. How did that happen?
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
I figured it out. It's the difference between copy and paste and clicking the bottom right corner of the cell and dragging it over. I always do a 'Ctrl-C' to copy, then highlight the range I'm copying to, and hit 'Ctrl-V' to paste. That works as I expected it to with the column names acting as absolute references. Apparently, if you click the box in the bottom right corner of the cell and drag it across it acts as if all the column names are relative references and changes the formula accordingly.
 
Upvote 0
Solution
You can also paste directly into the formula bar and it will paste the literal value of the copy without updating any cell references.
 
Upvote 0

Forum statistics

Threads
1,223,842
Messages
6,174,981
Members
452,596
Latest member
Anabaric

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