WallStreetMojo

WallStreetMojo

WallStreetMojo

MENUMENU
  • Blog
  • Free Video Tutorials
  • Courses
  • All in One Bundle
  • Login
Home » Excel, VBA & Power BI » Excel Tutorials » Dynamic Tables in Excel

Dynamic Tables in Excel

By Madhuri ThakurMadhuri Thakur | Reviewed By Dheeraj VaidyaDheeraj Vaidya, CFA, FRM

Dynamic tables in excel are the tables where when a new value is inserted to it, the table adjust its size by itself, to create a dynamic table in excel we have two different methods the once is which is creating a table of the data from the table section while another is by using the offset function, in dynamic tables the reports and pivot tables also changes as the data in the dynamic table changes.

Dynamic Tables in Excel

Dynamic in itself means a processor system characterized for a constant change or a change in activity. Similarly, in Excel when we create lists or data in a workbook and make a report out of it, but if we add any data or remove one or move or change the data, then the whole report can be inaccurate. Excel has a solution for it as Dynamic Tables.

Now the question arises why do we need Dynamic Range or Dynamic Tables. The answer to that is because whenever a list or data range is updated or modified, it does not make certain that the report will be changed as per the data change.

Basically, there are two main advantages of Dynamic Tables:

  1. A dynamic range will automatically expand or contract as per the data change.
  2. Pivot tables based on the dynamic table in excel can be automatically updated when the pivot is refreshed.

How to Create a Dynamic Tables in Excel?

There are two basic ways of using dynamic tables in excel – 1) Using TABLES and 2) Using OFFSET Function.

You can download this Dynamic Table Excel Template here – Dynamic Table Excel Template

#1 – Using Tables to create Dynamic Tables in Excel

Using Tables, we can build a dynamic table in excel and base a pivot over the dynamic table.

Example

We have the following data,

Dynamic Range with Data Tables example 1

If we make a pivot table with this normal data range from A1:E6, then if we insert a data in row 7, it will not reflect in the pivot table.

So we will first make a dynamic range.

#1 – Select the data, i.e., A1:E6.

Dynamic Range with Data Tables example 1-1

#2 – In the Insert tab, click on Tables under the tables section.

Dynamic Range with Data Tables example 1-2

#3 – A dialog box pops up.

Dynamic Range with Data Tables example 1-3

As our data has headers so remember to check on the box “My Table has headers” and click ok.

#4 – Our Dynamic Range is created.

Dynamic Range with Data Tables example 1-4

#5 – Select the data and in the Insert Tab under the excel tables section, click on pivot tables.

Dynamic Range with Data Tables example 1-5

#6 – As we have created the table, it takes a range as Table 2. Click on OK and in the pivot tables, Drag Product in Rows and Sales in Values.

Dynamic Range with Data Tables example 1-6

#7 – Now in Sheet where we have our table insert Another Data in 7th

Dynamic Range with Data Tables example 1-7

In the pivot table, refresh the pivot table.

Dynamic Range with Data Tables example 1-8

Our dynamic Pivot table has automatically updated data of Product 6 in the pivot table.

#2 – Using the OFFSET Function to create Dynamic Table in Excel

We can also use the OFFSET Function to create dynamic tables in excel. Let us have a look at one such example.

Example

I have a price list for my products which is I use for my calculations,

Using OFFSET Function example 1

Select the data and give it a name

Using OFFSET Function example 1-1

Now, whenever I refer to the data set pricelist, it will take me to the data in the range B2:C7, which has my price list. But if I update another row to the data, it will still take me to the range of B2:C7 because our list is static.

We will use the Offset Function to make the data range as dynamic.

#1 – Under The Formulas Tab in the Defined Range, click on Defined Name, and a dialog box pops up.

Popular Course in this category
Sale
All in One Excel VBA Bundle (35 Courses with Projects)
4.9 (1,353 ratings)
35+ Courses | 120+ Hours | Full Lifetime Access | Certificate of Completion
View Course

Using OFFSET Function example 1-2

#2 – In the Name Box type in any name, I will use the PriceA. The scope is the current workbook, and currently, it is referring to the current cell selected, which is B2.

In Refers to write the following formula,

=offset(Sheet2!$B$2,1,0,counta(Sheet2!$B:$B)-1,2)

=offset(

Using OFFSET Function example 1-3

#3 – Now select the starting cell, which is B2.

Using OFFSET Function example 1-4

#4 – Now we need to type 1,0 as it will count how many rows or columns to go

Using OFFSET Function example 1-5

#5 – Now we need it to count whatever the data is in column B and use that as the number of rows, so use the COUNTA function and select column B.

Using OFFSET Function example 1-6

#6 – As we do not want the first Row, which is the product header, to be counted, so (-) 1 from it.

Using OFFSET Function example 1-7

#7 – Now, the number of columns will always be two, so type 2 and click OK.

Using OFFSET Function example 1-8

 

#8 – This data range won’t be visible by default, so to see this, we need to click on Name Manager under the Formula Tab and select Product,

Using OFFSET Function example 1-9

#9 – If we click on refers to it shows the data range,

Using OFFSET Function example 10

#10 – Now add another product in the table Product 6.

Using OFFSET Function example 11

#11 – Now click on Product Table in the Name manager; it also refers to the new data inserted,

Using OFFSET Function example 12

This is how we can use the Offset function to make a dynamic Tables.

Things to Remember

  1. Pivot Tables based on Dynamic range automatically get updated when refreshed.
  2. Using the offset function in Defined names can be seen from the Name Manager in the formula Tab.

Recommended Articles

This has been a guide to a Dynamic Tables in Excel. Here we discuss how to create a dynamic table in excel using TABLE and OFFSET Function along with practical examples and downloadable templates. You may learn more about excel from the following articles –

  • Excel Merge Tables
  • Pivot Table Sort
  • Create a Dynamic Chart in Excel
  • Create a Data Table in Excel
10 Shares
Share
Tweet
Share
All in One Excel VBA Bundle (35 Courses with Projects)
  • 35+ Courses
  • 120+ Hours
  • Full Lifetime Access
  • Certificate of Completion
LEARN MORE >>
Primary Sidebar
Footer
COMPANY
About
Reviews
Contact
Privacy
Terms of Service
RESOURCES
Blog
Free Courses
Free Tutorials
Investment Banking Tutorials
Financial Modeling Tutorials
Excel Tutorials
Accounting Tutorials
Financial Statement Analysis
COURSES
All Courses
Financial Analyst All in One Course
Investment Banking Course
Financial Modeling Course
Private Equity Course
Venture Capital Course
Excel All in One Course

Copyright © 2021. CFA Institute Does Not Endorse, Promote, Or Warrant The Accuracy Or Quality Of WallStreetMojo. CFA® And Chartered Financial Analyst® Are Registered Trademarks Owned By CFA Institute.
Return to top

WallStreetMojo

Free Excel Course

Excel functions, Formula, Charts, Formatting creating excel dashboard & others

* Please provide your correct email id. Login details for this Free course will be emailed to you

Book Your One Instructor : One Learner Free Class
Let’s Get Started
Please select the batch
Saturday - Sunday 9 am IST to 5 pm IST
Saturday - Sunday 9 am IST to 5 pm IST

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

WallStreetMojo

Free Excel Course

Excel functions, Formula, Charts, Formatting creating excel dashboard & others

* Please provide your correct email id. Login details for this Free course will be emailed to you

Login

Forgot Password?

WallStreetMojo

Download Dynamic Table Excel Template

Special Offer - All in One Excel VBA Bundle (35 Courses with Projects) View More