structured reference - table and column between 2 sheets

mdwasim

New Member
Joined
Dec 31, 2019
Messages
14
Office Version
  1. 2016
Platform
  1. Windows
Hello everyone!,
Hope all are doing good.
I am trying to understand why structured reference between 2 tables does not work when the source table is moved few rows down?
The Plan is to have a "source table" in "dataSheet1" where users can enter the data.
"target table" in "dataSheet2" where couple of the column are same as "source table" and the data of these columns in "target table" are fetched from "source table"
VBA Code:
=tbl_source[column1]
here is the link to .xlsm file.
download

Apart from this, if you guys have any direction for me.
I need to compare the two tables. ''''''''''' This is working with the vba I have, with another major issue.
if "target table" has less rows than rows in "souce table" then
row is added to end of "target table" once "referesh" is hit.
if "target table" has more rows than rows in "source table" then
row is deleted from end of "target table" when "refresh" is hit

Issue with above approach..
if a row from between "souce table" is deleted the structured reference updates the "target table" shifting data a cell "up" and the data of "target table" (other rows) is now wrong data.
what i have in mind is to diable update in "datasheet2" and when row in "source table" is deleted, do a lookup on "target table" to delete entire row
which I am not sure how to achieve.

Thanks guys for your time.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,215,029
Messages
6,122,760
Members
449,095
Latest member
m_smith_solihull

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