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

Data Analysis

  • How to count table columns in Excel
  • How to create dynamic reference table name in Excel
  • Subtotal function in Excel
  • Calculate Conditional Percentile ‘IF’ in table in Excel
  • How to create a Histogram in Excel

References

  • How to get relative row numbers in a range in Excel
  • Approximate match with multiple criteria in Excel
  • To count total rows in a range in Excel
  • Convert text string to valid reference in Excel using Indirect function
  • How to get last row in text data in Excel

Data Validations

  • How To Create Drop-down List in Excel
  • Data validation must not exist in list
  • Excel Data validation date in specific year
  • Excel Data validation exists in list
  • Excel Data validation allow weekday only

Dynamic lookup table with INDIRECT in Excel

by

This tutorial shows how to calculate Dynamic lookup table with INDIRECT in Excel using the example below;

To allow a dynamic lookup table, you can use the INDIRECT function with named ranges inside of VLOOKUP.

Formula

=VLOOKUP(A1,INDIRECT("text"),column)

Explanation

In the example shown the formula in G5 is:

=VLOOKUP(F5,INDIRECT(E5),2,0)

Background

The purpose of this formula is to allow an easy way to switch table ranges inside a lookup function. One way to handle is to create a named range for each table needed, then refer to the named range inside of VLOOKUP. However, if you just try to give VLOOKUP a table array in the form of text (i.e. “table1”) the formula will fail. The INDIRECT function is needed to resolve the text to a valid reference.

How this formula works

At the core, this is a standard VLOOKUP formula. The only difference is the use of INDIRECT to return a valid table array.

In the example shown, two named ranges have been created: “table1” refers to B4:C6, and “table2” refers to B9:C11*.

INDIRECT picks up the text in E5 (“table1”) and resolves it the named range table1, which resolves to B9:C11, which is returned to VLOOKUP.

VLOOKUP performs the lookup and returns 12 for the color “blue” in table1.

* Note: names ranges actually create absolute references like $B$9:$C$11, but I’ve omitted the absolute reference syntax to make the description easier to read.

Post navigation

Previous Post:

How to use Excel CHOOSE Function

Next Post:

Customize Ribbon In Excel

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 with wildcards in Excel
  • Not Equal To ‘<>‘ operator in Excel
  • Check multiple cells are equal in Excel
  • FALSE function: Description, Usage, Syntax, Examples and Explanation
  • IFNA function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Convert date to Julian format in Excel
  • EDATE function: Description, Usage, Syntax, Examples and Explanation
  • Get last day of month in Excel
  • How to get same date next year or previous year in Excel
  • Extract date from a date and time in Excel

Grouping

  • Group numbers at uneven intervals in Excel
  • Group times into 3 hour buckets in Excel
  • Group numbers with VLOOKUP in Excel
  • Calculate conditional mode with criteria in Excel
  • If cell contains one of many things in Excel

General

  • Excel Ribbon Quick Overview For Beginners
  • Index and match on multiple columns in Excel
  • Subtotal by invoice number in Excel
  • Basic numeric sort formula in Excel
  • How to calculate percent change in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning