Fix the CELL Filename Formula Error in Excel Online
Question details
The user wants to return a worksheet name without getting a formula error in Excel Online.

- Product
- Excel Online
- Device & OS
- not provided
- Scenario
- A formula extracts the worksheet name from the result of CELL("filename",D2).
- Observed behavior
- The formula returns #VALUE! because the filename information type is not supported in Excel Online.
Check whether your formula contains CELL("filename") and whether you are opening the workbook in Excel Online. If you plan to use desktop Excel, make sure you can open and save the workbook there.
Open and save the workbook in desktop Excel
Use desktop Excel when you need the formula to extract the worksheet name automatically.
In Excel Online, select Open in Desktop App or Open in App from the workbook toolbar.
In desktop Excel, select File > Save or Save As and save the workbook. CELL("filename") needs a saved workbook to return its full path, file name, and sheet name.
Select the formula cell and confirm it contains =RIGHT(CELL("filename",D2),LEN(CELL("filename",D2))-FIND("]",CELL("filename",D2))). Recalculate the workbook if necessary.

Use a manually entered worksheet name in Excel Online
Use a text label when the workbook must work in the browser and automatic sheet-name detection is not essential.
Work with Excel spreadsheets in WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface. Open compatible Excel files and continue editing with minimal disruption; it does not change Excel Online's CELL function support.

Frequently Asked Questions
Why does CELL("filename") return an error in Excel Online?
Excel Online does not support the filename information type of the CELL function. A formula that depends on that result cannot reliably extract the worksheet name in the browser.
Why is CELL("filename") blank in desktop Excel?
The workbook must be saved before CELL("filename") can return its path, file name, and sheet name. Select File > Save or Save As, then recalculate the formula.
Can I display a sheet name in Excel Online without CELL("filename")?
You can type the sheet name into a cell and refer to that cell in other formulas. Update the text manually whenever you rename the sheet tab.
Will opening the workbook in desktop Excel fix the formula in the browser?
No. Desktop Excel can evaluate the formula, but Excel Online still does not support the filename information type when it recalculates the workbook.




