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

Data Analysis

  • Conditional Formatting Data bars Examples in Excel
  • How to Create Thermometer Chart in Excel
  • How to combine 2 or more chart types in a single chart in Excel
  • How To Perform and Interpret Regression Analysis in Excel
  • Get column name from index in Excel Table

References

  • Convert text string to valid reference in Excel using Indirect function
  • How to get relative column numbers in a range in Excel
  • Two-way lookup with VLOOKUP in Excel
  • MATCH function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel TRANSPOSE Function

Data Validations

  • Excel Data validation no punctuation
  • Excel Data validation must begin with
  • Excel Data validation whole percentage only
  • Excel Data validation must contain specific text
  • Excel Data validation date in specific year

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

  • SWITCH function: Description, Usage, Syntax, Examples and Explanation
  • OR function Examples in Excel
  • Nested IF function example in Excel
  • How to use Excel TRUE Function
  • Return blank if in Excel

Date Time

  • How to calculate Quarter of Date in Excel
  • Series of dates by day
  • Two ways to sum time over 30 minutes in Excel
  • DATE function: Description, Usage, Syntax, Examples and Explanation
  • NETWORKDAYS function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Group times into 3 hour buckets in Excel
  • Group arbitrary text values in Excel
  • Categorize text with keywords in Excel
  • Group numbers with VLOOKUP in Excel
  • Map inputs to arbitrary values in Excel

General

  • Spell Check in Excel
  • How to get random value from list or table in Excel
  • Common Errors in Excel
  • Convert column number to letter in Excel
  • Delete Blank Rows at Once in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning