Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Conflicting Multiple Conditional Formatting Rules in Excel
  • Create Scatter Chart in Excel
  • How to Create One and Two Variable Data Tables in Excel
  • Reverse List in Excel
  • How To Insert and Customize Sparklines in Excel

References

  • INDEX function: Description, Usage, Syntax, Examples and Explanation
  • How to calculate two-way lookup VLOOKUP in Excel Table
  • How to get last row in mixed data with blanks in Excel
  • How to use Excel OFFSET function
  • How to get relative row numbers in a range in Excel

Data Validations

  • Excel Data validation unique values only
  • Excel Data validation whole percentage only
  • Excel Data validation must contain specific text
  • Excel Data validation exists in list
  • Excel Data validation must not contain

How to create dynamic reference table name in Excel

by

To build a formula with a dynamic reference to an Excel Table name, you can use the INDIRECT function with concatenation as needed.

Formula

=SUM(INDIRECT(table&"[column]"))

Note: INDIRECT is a volatile function and can cause performance issues in larger, more complex workbooks.

Explanation

In the example shown, the formula in L5 is:

=SUM(INDIRECT(K5&"[Amount]"))

Which returns the SUM of Amounts for three tables named “West”, “Central”, and “East”.

How this formula works

This formula behaves like these simpler formulas:

=SUM(West[Amount])
=SUM(Central[Amount])
=SUM(East[Amount])

However, instead of hardcoding the table into each SUM formula, the table names are listed in column K, and the formulas in column L use concatenation to assemble a reference to each table. This allows the same formula to be used in L5:L7.

The trick is the INDIRECT function to evaluate the reference.

We start with:

=SUM(INDIRECT(K5&"[Amount]"))

which becomes:

=SUM(INDIRECT("West"&"[Amount]"))

and then:

=SUM(INDIRECT("West[Amount]"))

The INDIRECT function then resolves the text string into a proper structured reference:

=SUM(West[Amount])

And the SUM function returns the final result, 27,500 for the West region.

Post navigation

Previous Post:

How to calculate project complete percentage in Excel

Next Post:

Popularly Used Excel Functions and their examples

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • IF, AND, OR and NOT Functions Examples in Excel
  • Extract multiple matches into separate rows in Excel
  • How to use Excel OR Function
  • SWITCH function: Description, Usage, Syntax, Examples and Explanation
  • How to return blank in place of #DIV/0! error in Excel

Date Time

  • How to calculate next anniversary date or birthday in Excel
  • Convert text timestamp into time in Excel
  • Display Days in month in Excel
  • Get fiscal quarter from date in Excel
  • Calculate retirement date in Excel

Grouping

  • If cell contains one of many things in Excel
  • Group numbers at uneven intervals in Excel
  • Map inputs to arbitrary values in Excel
  • Calculate conditional mode with criteria in Excel
  • Running count group by n size in Excel

General

  • How to fill cell ranges with random text values in Excel
  • Index and match on multiple columns in Excel
  • Find Most Frequently Occurring Word in Excel Worksheet
  • Find, Select, Replace and Go To Special in Excel
  • How to generate random number between two numbers in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning