Dynamic Table in Excel accepts the new values added to the list dynamically, whenever the existing data table is modified.
Dynamic Tables are commonly referenced by a table name, and when data is added, the dynamic tables expand their range to newly added data. Any formula or pivot table applied based on the dynamic table takes the reference of the data by the dynamic table name.
Applying table format for data structure will make the data sources dynamic.
For instance, we have the following data in an Excel spreadsheet.
To summarize the above data, let us apply the pivot table.
Choose the entire data range, A1:B8 → select the “Insert” tab → go to the “Tables” group → click the “Pivot Table” option drop-down → select the “From Table/Range” option, as shown below.
The “Pivot Table from table or range” window appears. Choose the destination of the pivot table as “Existing Worksheet”, choose an empty cell as a reference, here, cell F1, and click “OK”.
The working pivot table is ready, as shown below.
Drag and drop the product column to the rows, and the sales column to the values section of the pivot table.
We have got the sales summary of the products. Now, let us add a few more entries to the existing list.
We have added Cosmetics and Foods data to the existing data range. Select any cell in the pivot table range, right-click, and click on the “Refresh” option.
After refreshing the pivot table, any modification in the data range will reflect in the pivot tables summary.
There is no change in the pivot table compared to the previous one. This is because when we applied the pivot table, the data range selected was A1:B8, so anything added outside this range will not alter the pivot table.
To fix the data range to newly added rows, click on the existing pivot table, 2 new tabs, i.e., “PivotTable Analyze” and “Design”, appear on the ribbon.
Select the “PivotTable Analyze” tab → go to the “Data” group → click the “Change Data Source” option drop-down → select the “Change Data Source…” option, as shown below.
The “Change Pivot Table Data Source” window appears, and it shows the current data range from A1:B8.
Change the source to include new rows, and click “OK”.
We will see the new products in the summary table.
This manual process is time-consuming. Hence, we will make the data source dynamic by converting the data range into the Excel Table format.
The steps to convert the data range to Excel Table format are listed here:
[Note: The shortcut key to create a table is “Ctrl + T”.]
The Excel Table format is applied, and the data range is converted to an Excel Table, as shown below.
Now we can call this Excel Table by the name “Sales_Table”.
The steps to insert a pivot table based on this Sales_Table Excel Table are,
After refresh, the pivot table shows the newly added rows dynamically.
In this way, we can create a Dynamic Table in Excel using the Excel Table feature.