Formula Errors

Fix the CELL Filename Formula Error in Excel Online

Huma Ashraf ChHuma Ashraf Ch Nov 22, 2026 870 views

Question details

The user wants to return a worksheet name without getting a formula error in Excel Online.

Why the CELL Filename Formula Returns #VALUE! 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.
Before you start

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.

Solution 1Recommended

Open and save the workbook in desktop Excel

Use desktop Excel when you need the formula to extract the worksheet name automatically.

1
Open in desktop Excel

In Excel Online, select Open in Desktop App or Open in App from the workbook toolbar.

2
Save the workbook

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.

3
Check the formula

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.

Open and save the workbook in desktop Excel
Excel Online limitation: Opening the workbook in desktop Excel does not add support for CELL("filename") to Excel Online. The formula may still return an error when recalculated in the browser.
Free Microsoft Office alternative

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.

Edit spreadsheet labels and formulas in a familiar interfaceCompatible with Microsoft Excel formats, including XLSX and XLSFree, lightweight tools for everyday document workOpen existing Office files to make switching easier
microsoft office alternative - wps office

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.