Inserting a row into multiple tables based on a "master spreadsheet"

Danq87

New Member
Joined
Jun 28, 2018
Messages
1
Hi All

I apologise if this has already been covered elsewhere, I've been having a scour and been unable to find anything that fits my problem so hoping one of you amazing excel wizards can help...

I have a Workbook with multiple sheets, each has a table containing the same items. They all reference back through various lookups toa master spreadsheet which is all working fine. They also have to reference each other and the easiest way to do that is for them all to have the same items in, for various reasons. I'm trying to find a way that I can insert a row into the master spreadsheet and for that propagate through the rest of the workbook adding the inserted row into the same place in all the tables. This doesn't necessarily need to happen automatically, it could be via an "update" macro for example.

To give a rough example of what I am working with (table names, sheet names, and items within tables changed to be more relatable):

Let's say I have 11 sheets, a master and then shop 1 thru shop 10.
Each sheet has a range formatted as a table, each table is named "tbl_master", "tbl_shop1" etc etc
The items in each of the tables are all the same and in the same order like below.
All tables start in the same place, e.g. A6

[TABLE="class: grid, width: 600"]
<tbody>[TR]
[TD]Code[/TD]
[TD]Description[/TD]
[TD]Qty In[/TD]
[TD]Qty Out[/TD]
[/TR]
[TR]
[TD]FA[/TD]
[TD]Apple[/TD]
[TD]10[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]FO[/TD]
[TD]Orange[/TD]
[TD]5[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]FB[/TD]
[TD]Banana[/TD]
[TD]11[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]FG[/TD]
[TD]Grapes[/TD]
[TD]6[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]VC[/TD]
[TD]Carrot[/TD]
[TD]10[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]VP[/TD]
[TD]Potato[/TD]
[TD]100[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]VL[/TD]
[TD]Lettuce[/TD]
[TD]15[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]VT[/TD]
[TD]Tomato[/TD]
[TD]30[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]VO[/TD]
[TD]Onion[/TD]
[TD]12[/TD]
[TD]12[/TD]
[/TR]
</tbody>[/TABLE]

I want to then add in a row on tbl_master below FA (Apple) and populate the first 2 common columns with FP (Pear) and for tbl_shop1 thru tbl_shop10 to also receive the update with no data added to columns C (Qty In) and D (Qty out). Ideally these columns would behave like tables usually do and assume the formulae from the rest of the column.

If there is anything I have failed to explain correctly then I can answer any questions to help me get to a solution for this.

Many thanks in advance for all of your help.

Dan
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Forum statistics

Threads
1,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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