Reference an Excel Worksheet by Position Instead of Sheet Name
Question details
The user wants to retrieve a cell from an Excel worksheet using its position rather than its name.

- 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.
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.
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.
In the worksheet containing your formula, enter the exact target worksheet name in cell A1.
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.
Edit the sheet name in the control cell A1 whenever you want the formula to refer to a different worksheet.

Use a VBA Function to Reference a Worksheet by Position
Use this option in desktop Excel when the reference must follow the order of worksheets.
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.

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.




