How do I prevent Structured References from shifting when adding a new column to table imported via Power Query?

bassplr19

New Member
Joined
Sep 11, 2023
Messages
35
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I have a data table that I query from one shared department spreadsheet. I pull that data into my spreadsheet with Power Query, I don't perform any special steps, just import.

I then reference that DATA[Wire 1] and DATA[Wire 2], for example. If I put a column [Wire 1.5] in between [Wire 1] and [Wire 2] in the source data, my structured reference become DATA[Wire 1] and DATA[Wire 1.5] in my formulas.

How do I prevent this going forward? One thought I had was put "Wire 2" (in B2, for reference) above the column and change my structured reference to indirect("DATA[" & B$2 & "]") but I may want to reference multiple imported columns.

Is there a better way to reference this data?
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Book1.xlsx
ABCDEFGH
1Wire 14Wire 10Wire 14Wire 10
2Lug ALug BLug ALug B
3
4
5Lug B
Sheet1
Cell Formulas
RangeFormula
H5H5=Lugs_2[Wire 10]


I then add a column to the first table.
Book1.xlsx
ABCDEFGHI
1Wire 14Wire 15Wire 10Wire 14Wire 10
2Lug ALug CLug BLug ALug B
3
4
5Lug B
Sheet1
Cell Formulas
RangeFormula
I5I5=Lugs_2[Wire 10]


I save the workbook and refresh the query, then this happens?
Book1.xlsx
ABCDEFGHIJ
1Wire 14Wire 15Wire 10Wire 14Wire 15Wire 10
2Lug ALug CLug BLug ALug CLug B
3
4
5Lug C
Sheet1
Cell Formulas
RangeFormula
I5I5=Lugs_2[Wire 15]
 
Upvote 0
Try
VBA Code:
DATA[[Wire 1]:[Wire 1]]

Huh? It did the same things

Book1.xlsx
ABCDEFGHIJ
1Wire 14Wire 15Wire 10Wire 14Wire 15Wire 10
2Lug ALug CLug BLug ALug CLug B
3
4Lug C
5Lug C
Sheet1
Cell Formulas
RangeFormula
E4E4=Lugs_2[[Wire 15]:[Wire 15]]
I5I5=Lugs_2[Wire 15]
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,624
Latest member
gregg777

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