Function Problems

Reference an Excel Worksheet by Position Instead of Sheet Name

Muhammad TalhaMuhammad Talha Dec 2, 2026 869 views

Question details

The user wants to retrieve a cell from an Excel worksheet using its position rather than its name.

How to Reference an Excel Worksheet by Position
Product
Microsoft Excel
Device & OS
not provided
Scenario
Build a formula that reads a cell from a worksheet identified by its position in a workbook.
Observed behavior
Excel has no standard formula syntax such as SheetNumber(2)!A1. SHEET and SHEETS return position information but do not turn a position into a cell reference.
Before you start

Decide whether you need the reference to follow worksheet order or simply need an easy way to select a sheet. For the VBA approach, check that you can use Excel on the desktop and save the workbook in a macro-enabled format.

Solution 1Recommended

Use a Control Cell to Select a Worksheet by Name

Use this formula-based workaround when selecting a sheet by name is acceptable and you do not need the reference to follow sheet order.

1
Enter the target sheet name

In the worksheet containing your formula, enter the exact target worksheet name in cell A1.

2
Build the reference

In another cell, enter =INDIRECT("'"&SUBSTITUTE(A1,"'","''")&"'!A1") to retrieve cell A1 from the named worksheet. Replace the final A1 in the formula with the target cell address if needed.

3
Change the target

Edit the sheet name in the control cell A1 whenever you want the formula to refer to a different worksheet.

Use a Control Cell to Select a Worksheet by Name
Name-based reference: INDIRECT still requires a valid sheet name and is volatile, so it can increase recalculation time in large workbooks. Defined names or Excel Tables can also make references easier to maintain without relying on worksheet order.
Free Microsoft Office alternative

Manage Excel Workbooks with WPS Spreadsheet

WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and support for Excel formats, making it easy to bring existing workbooks across. It does not fix Excel's lack of a standard position-based worksheet reference.

Use a familiar spreadsheet interface to work with worksheet referencesOpen and edit Microsoft Excel XLS and XLSX filesUse a free, lightweight office suiteBring existing spreadsheets into a familiar workspace
microsoft office alternative - wps office

Frequently Asked Questions

Can SHEET or SHEETS retrieve a cell by worksheet position?

No. SHEET and SHEETS return position or count information; they do not convert a position into a reference such as the second worksheet's A1 cell.

What happens if I move worksheets after using the VBA function?

The function follows the new worksheet order, so =CellByPosition(2,"A1") may return a different value. Press Ctrl+Alt+F9 in desktop Excel to force recalculation if needed.

Why does my INDIRECT formula return a reference error?

Check that the control cell contains an existing worksheet name and that the target cell address is valid. The formula in this article handles spaces and apostrophes in worksheet names.

Can I use the VBA function in Excel for the web?

No. VBA functions do not run in Excel for the web. Open the macro-enabled workbook in desktop Excel and enable macros when appropriate.