How to make 'dynamic' Table to be auto-updated when size of another Table changes?

gifariz

Board Regular
Joined
May 2, 2021
Messages
112
Office Version
  1. 365
Platform
  1. Windows
I'm new to excel Table. I wonder if it is possible to make a Table to be auto-updated when size of another Table changes?

Here is my case below, please see in screenshot (I make it simplified for this question).
Excel file is uploaded here: Dynamic Table

I have 3 Tables: Properties, ElementA, ElementB.
First and second tables are have input data (yellow header).
But size of third table actually depends on unique values of a column in second table (ElementA[Name]), thus size is dynamic.
What I want is to do is like ElementB[Name] = UNIQUE(ElementA[Name]), but its not possible since Table cannot deal with dynamic array formula output.
(In the excel, I temporarily copy paste result from UNIQUE formula to ElementB[Name] for making this example).

I also cannot do all calculation of third table in second table, because real data in second table has >100,000 rows (too slow), so I need to do filtering of second table for further calculation in third table.
If I make pivot table from second table to do filtering, I still don't know how to make the third table from this pivot table.

Is there workaround which is automatic (since copy paste UNIQUE formula output is not automatic)?
Hope it is understandable.
Thank you in advance.

1672298863121.png
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Why does the third table need to be an actual table?
 
Upvote 0
That's what happens when you don't provide context for your questions. ;)

Using spilled arrays gives you the benefit of dynamic ranges without needing tables, unless you plan to use the results in Power Query (in which case you should probably be doing all of it in PQ).
 
Upvote 0
Solution
That's what happens when you don't provide context for your questions. ;)

Using spilled arrays gives you the benefit of dynamic ranges without needing tables, unless you plan to use the results in Power Query (in which case you should probably be doing all of it in PQ).
Thank you for your response.

I have been using dynamic array so far, but Table has some benefits that I like more:
- I can write formula with table column key instead of cell name, better readibility. Although LET function also can be used with dynamic array for naming the variables, I feel using column key is easier.
- If I have an input change of one row, no need to re-calculate the whole rows which dynamic array does. Better performance. I feel excel becomes lighter also.

So I guess no solution for my question right?
I have to come back to dynamic array, or make macro to automate copy paste for updating third table.
 
Upvote 0
You could use power query to create the third table or a macro. Personally I would use dynamic arrays.
 
Upvote 0
You could use power query to create the third table or a macro. Personally I would use dynamic arrays.
Oh okay, I will try and see if using PQ to update third table (just to update first column from Unique function result) is easier than macro. Thank you.
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,598
Members
449,089
Latest member
Motoracer88

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