Dynamically update table row categories from a source list

tcjohnson

New Member
Joined
Jul 15, 2019
Messages
1
I am trying to figure out if there is a way to update table row categories when a list on a different sheet is updated. For example, on Sheet 1 I have the source table like the following:

[TABLE="width: 125"]
<tbody>[TR]
[TD]Categories[/TD]
[/TR]
[TR]
[TD]Fruits[/TD]
[/TR]
[TR]
[TD]Veggies
[/TD]
[/TR]
[TR]
[TD]Meat[/TD]
[/TR]
</tbody>[/TABLE]

Then I have the destination table on Sheet 2 that has the categories from the source table in its first column:

[TABLE="width: 500"]
<tbody>[TR]
[TD]Categories[/TD]
[TD]Day 1[/TD]
[TD]Day 2[/TD]
[TD]Day 3[/TD]
[TD]Day 4[/TD]
[TD]Day 5[/TD]
[/TR]
[TR]
[TD]Fruits[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Veggies[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Meat
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Total[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Now what I want to do is update the rows in the destination table whenever I add or remove rows from the source table. For example if I insert a row on the source table between Veggies and Meat and type in Bread, I would want it to also appear between Veggies and Meat on the destination table.
I have tried creating a macro button that will automate this but I am having trouble and it is becoming much more complicated than I imagine it should be.

Thanks for any help!
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,224,824
Messages
6,181,187
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