Function Problems

Use INDIRECT and VLOOKUP for a Dynamic Excel Sheet Reference

Rana GarciaRana Garcia Nov 25, 2026 869 views

Question details

Create a VLOOKUP formula that references a worksheet whose name is assembled from cell values.

Use INDIRECT and VLOOKUP for a Dynamic Excel Sheet Reference
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet name combines the values in F14 and F9, and VLOOKUP needs to search a range on that worksheet.
Observed behavior
The formula should dynamically select the named worksheet and return the matching value from its lookup range.
Before you start

Check that F14 and F9 combine to form an existing worksheet name, such as Adams90745. Confirm that the lookup values are in column C and the values to return are in column D, within rows 111–120.

Solution 1Recommended

Build the worksheet reference with INDIRECT and VLOOKUP

Use this formula when the worksheet name is formed by placing F14 before F9.

1
Check the worksheet name

In the worksheet tabs, confirm that a sheet named Adams90745 exists when F14 contains Adams and F9 contains 90745. If your sheet uses a different order, adjust the order of the cell references in the formula.

2
Enter the lookup formula

Select the cell where you want the result and enter =VLOOKUP($A88,INDIRECT("'"&F14&F9&"'!$C$111:$D$120"),2,FALSE).

3
Verify the result

Check that A88 contains a value present in C111:C120 on the referenced sheet. The formula returns the corresponding value from column D using an exact match.

Build the worksheet reference with INDIRECT and VLOOKUP
Troubleshoot formula errors: A #N/A result means an exact match was not found in the lookup column; check the value and its text or number format. A #REF! result can indicate that the assembled worksheet reference does not exist.
Work with dynamic references

Create the same dynamic lookup in WPS Spreadsheet

Use INDIRECT and VLOOKUP in WPS Spreadsheet to build a worksheet reference from cell values and retrieve a matching result.

  1. 1. Open the workbook: Open WPS Spreadsheet and use Open to select your Excel workbook.
  2. 2. Check the source cells: Confirm that F14 and F9 combine to match a worksheet tab name and that the lookup data is in C111:D120 on that sheet.
  3. 3. Enter the formula: Select the result cell and enter =VLOOKUP($A88,INDIRECT("'"&F14&F9&"'!$C$111:$D$120"),2,FALSE).
  4. 4. Check the match: Press Enter and verify that A88 appears in the referenced sheet's C111:C120 range.
Build worksheet references dynamically with INDIRECTFind exact matches with VLOOKUPOpen and edit Microsoft Excel XLSX and XLS filesWork in a familiar spreadsheet interface
microsoft office alternative - wps office

Frequently Asked Questions

Why does the formula return #N/A?

VLOOKUP returns #N/A when it cannot find an exact match for A88 in C111:C120. Check the lookup value, the referenced sheet, and whether the values are stored as text or numbers.

Why does INDIRECT return #REF!?

Check the worksheet tabs to see whether the name formed by F14 followed by F9 exists. Also check for extra spaces or an incorrectly typed range in the INDIRECT reference.

What do the single quotation marks around the sheet name do?

They allow the reference to work with worksheet names containing spaces or certain special characters. In the formula, "'" adds a single quotation mark before and after the assembled sheet name.

Can I put F9 before F14 in the sheet name?

Yes. If the worksheet name starts with F9 and ends with F14, replace &F14&F9& with &F9&F14& inside INDIRECT.