Function Problems

Use Text as a VLOOKUP Table Array in Excel

Phi Hung VoPhi Hung Vo Nov 25, 2026 869 views

Question details

Use a named range or worksheet reference stored in a cell as the table array for VLOOKUP.

Use a Text Value as a VLOOKUP Table Array in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
A lookup formula needs to read its table reference from a text value in another cell.
Observed behavior
INDIRECT can resolve a valid text reference for VLOOKUP, although a dynamic named range may return a #REF! error and require further investigation.
Before you start

Check that the lookup value appears in the first column of the intended table and that the table has at least four columns. Confirm that A1 contains the exact named range or a complete reference such as 'Sheet 1'!A1:D100.

Solution 1Recommended

Use INDIRECT to resolve the VLOOKUP table array

Use this formula when A1 contains a valid named range or worksheet reference as text.

1
Enter the table reference

In cell A1, enter a named range such as PriceTable or a worksheet range such as 'Sheet 1'!A1:D100.

2
Enter the lookup formula

Select the result cell and enter =VLOOKUP("Min Sell Price",INDIRECT(A1),4,FALSE).

3
Check the result

Press Enter. Excel searches the first column of the resolved table and returns the matching value from its fourth column; FALSE requires an exact match.

Use INDIRECT to resolve the VLOOKUP table array
Check the table width: The column index 4 requires at least four columns in the resolved range. Change the index if the desired return value is in a different column.
Work with spreadsheet formulas

Use a Text-Based VLOOKUP Table in WPS Spreadsheet

In WPS Spreadsheet, combine VLOOKUP and INDIRECT to use a table reference stored as text. Check that the reference resolves before using it in your lookup.

  1. 1. Open your workbook: Open WPS Spreadsheet and use Open to select your Excel workbook.
  2. 2. Enter a reference: In A1, type a valid named range or a worksheet range such as 'Sheet 1'!A1:D100.
  3. 3. Add the formula: Select the result cell and enter =VLOOKUP("Min Sell Price",INDIRECT(A1),4,FALSE).
  4. 4. Verify and save: Press Enter and check the returned value. Use File > Save As to save the workbook in XLSX format if needed.
Use INDIRECT to select a VLOOKUP table from a cell valueOpen and edit Microsoft Excel XLSX and XLS filesWork with familiar spreadsheet formulas and a ribbon-style interfaceUse WPS Office for free
microsoft office alternative - wps office

Frequently Asked Questions

What should I put in A1 for INDIRECT?

Enter a valid named range, such as PriceTable, or a complete worksheet range, such as 'Sheet 1'!A1:D100. INDIRECT reads that text as a reference.

Why does VLOOKUP return #N/A?

With FALSE as the last argument, VLOOKUP requires an exact match. Check that the lookup value exists in the first column of the resolved table and that its text or number type matches the source.

Why does INDIRECT return #REF! for my named range?

Check the name's spelling, scope, and Refers to formula under Formulas > Name Manager. Test =ROWS(INDIRECT(A1)) separately, and open the source workbook if the reference is external.

Can I use a dynamic named range directly instead?

Yes. If the name resolves directly but fails through INDIRECT, try a formula such as =VLOOKUP("Min Sell Price",PriceTable,4,FALSE), replacing PriceTable with your dynamic range name.