Reference a cell in the Advanced Editor of Power Query Editor

Sigmawolf101

New Member
Joined
Sep 23, 2020
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hello,

I'm trying to text in the advanced editor with a cell reference from a sheet in my workbook. I'm constantly having to manually update the advanced editor in 25 different tables which is taking me ~30minutes to run a report. Is it possible to do a cell reference for this? I've highlighted my example in the attached picture.

I've been stumped, any help would be REALLY APPRECIATED!

Capture.PNG
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Wow, thanks for helping Sandy! I'm still in awe that you would take time on this. However, it's still generating an error message.

I added the code you provided and it gave me an "[Expression.Error] The column 'string' of the table wasn't found." error.

I'm trying to reference cell B2 on Sheet 2. I looked at your exampled and it appeared you named the cell "Table 1", so I made an assumption and did the same. I'm not sure if this contributed to the error. Was that a proper assumption on my part?
 

Attachments

  • Error Message.PNG
    Error Message.PNG
    3.2 KB · Views: 15
Upvote 0
there is Table1 not Table 1
the string should be as table with exactly the same header and table name or try to experiment with it ;)

paste the rest of your M (after Source line) into Advanced Editor in my file and check if it will work
Capture2.PNG
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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