Function Problems

How to Display Worksheet Names in Excel for the Web When CELL is Unsupported

John WilsonJohn Wilson Oct 29, 2026 872 views

Question details

The user needs to retrieve and display worksheet names dynamically in Excel for the Web or Microsoft Teams where the CELL function is not supported.

How to Display Worksheet Names in Excel for the Web When CELL is Unsupported
Product
Excel for the Web
Device & OS
not provided
Scenario
Working in Excel for the Web or sharing workbooks through Microsoft Teams where specific functions behave differently than desktop versions.
Observed behavior
The CELL function returns a #VALUE! error, preventing the standard method of extracting worksheet names.
Before you start

Create a dedicated helper sheet in your workbook to store the references for each worksheet you want to extract the name from.

Solution 1Recommended

Extract Worksheet Name Using FORMULATEXT and a Helper Reference

Since the CELL function does not work in Excel for the Web, you can create a direct reference to the target sheet and extract its name using the FORMULATEXT function.

This method involves referencing a cell on the target worksheet from a helper sheet, and then parsing that formula as text to extract the sheet's name.

Note that each worksheet requires its own unique reference formula.

1
Create a Helper Sheet

Insert a new worksheet in your Excel workbook to act as your reference helper sheet (e.g., named 'Sheet2').

2
Create a Reference to the Target Sheet

In the helper sheet, enter a direct formula reference to the sheet whose name you want to retrieve. For example, enter ='Test Sheet'!1:1 in cell A2.

3
Apply the Extraction Formula

In the cell where you want the worksheet name to be displayed, enter the following formula to parse the text: =SUBSTITUTE(MID(FORMULATEXT(Sheet2!A2),2,FIND("!1:1",FORMULATEXT(Sheet2!A2))-2),"'","")

4
Repeat for Additional Sheets

To get names for other sheets, you cannot just drag the formula. You must create a new reference (e.g., ='Another Sheet'!1:1) in a new cell, and update the FORMULATEXT reference to point to that new cell.

Extract Worksheet Name Using FORMULATEXT and a Helper Reference
Requirement for Multiple Sheets: If you apply this formula to a second sheet without changing the target reference, it will continue to display the first sheet's name. You must manually modify the reference for every sheet.
Free Microsoft Office alternative

Experience Full Formula Support with WPS Office

Avoid function limitations found in Excel for the Web. WPS Office offers a comprehensive, lightweight, and free alternative with full support for advanced spreadsheet functions like CELL, ensuring your complex workbooks work flawlessly.

  1. 1. Download and Install WPS Office: Get the free WPS Office suite from the official website and install it on your device.
  2. 2. Open Your Workbook: Launch WPS Spreadsheet and open your existing Microsoft Excel (.xlsx) file seamlessly.
  3. 3. Use Standard Functions: Easily use standard formulas like =CELL("filename") to extract worksheet names without encountering the #VALUE! errors seen in web versions.
Fully compatible with Microsoft Excel (.xlsx) formats and formulas.Robust support for all standard spreadsheet functions natively without web-only limitations.Lightweight installation with an intuitive, familiar interface.Seamlessly edit and manage local or cloud files with ease.
microsoft office alternative - wps office

Frequently Asked Questions

Why does the CELL function return #VALUE! in Excel for the Web?

Excel for the Web and Microsoft Teams operate in a browser environment without traditional local file paths. Because of this, environment-specific functions like CELL("filename") are unsupported and return a #VALUE! error.

Can I apply the FORMULATEXT extraction to all sheets at once?

No, you must create a separate direct reference (like ='Sheet Name'!1:1) for each individual worksheet you want to extract the name from, and then point the FORMULATEXT formula to that specific reference.

Is there a simpler built-in function to get the sheet name online?

Currently, Excel for the Web does not have a dedicated built-in function to return the sheet name directly. Users must rely on workarounds like the FORMULATEXT method or utilize Office Scripts.