Excel Error Codes

Fix CELL Filename Formula #VALUE! in Excel for the Web

Olivia MillerOlivia Miller Nov 20, 2026 871 views

Question details

The user needs to understand why a CELL filename formula returns an error in Excel for the web and how to use it.

Why CELL Filename Formulas Return #VALUE! in Excel for the Web
Product
Microsoft Excel for the web
Device & OS
not provided
Scenario
A workbook uses CELL("filename",A1) to retrieve file information and is opened in Excel for the web.
Observed behavior
The formula works in desktop Excel but returns #VALUE! in Excel for the web.
Before you start

Check that the formula is =CELL("filename",A1) and confirm whether the workbook has been saved. Access to desktop Excel is needed to test the recommended workaround.

Solution 1Recommended

Open and calculate the workbook in desktop Excel

Use desktop Excel when the workbook depends on CELL filename information that Excel for the web cannot provide.

Excel for the web has limitations with some desktop formula features, including the filename information requested by this formula.

1
Open the desktop app

In Excel for the web, select Editing and choose Open in Desktop App, or use the Open in Desktop App option available in your workbook.

2
Save the workbook

In desktop Excel, select File > Save or Save As and save the workbook if it has not already been saved.

3
Check the formula

Select the cell containing =CELL("filename",A1) and confirm that it returns the saved workbook's path, file name, and sheet name instead of #VALUE!.

Open and calculate the workbook in desktop Excel
Web compatibility: Opening the workbook in desktop Excel is a workaround; it does not add filename support to Excel for the web.
Free Microsoft Office alternative

Work with Excel workbooks in WPS Spreadsheet

WPS Office is a free, lightweight Office alternative with a familiar interface. Open compatible Excel files in WPS Spreadsheet for an easy transition, though it does not fix Excel for the web's CELL filename limitation.

Open and edit Microsoft Excel XLSX and XLS filesWork with spreadsheet formulas in a familiar interfaceUse a free, lightweight office suiteMove existing Excel workbooks into an alternative spreadsheet application
microsoft office alternative - wps office

Frequently Asked Questions

Why does CELL("filename",A1) return #VALUE! in Excel for the web?

Excel for the web does not support every desktop formula feature or reference. The filename information requested by CELL can return #VALUE! in the browser even when it works in desktop Excel.

What does CELL("filename",A1) return in desktop Excel?

For a saved workbook, the formula returns the file path and workbook name together with the sheet name. Use File > Save or Save As before checking the result.

Will opening the workbook in desktop Excel fix Excel for the web?

No. Opening it in desktop Excel lets you use the formula there, but it does not change the web app's compatibility limitations.

How can I request support for this formula in Excel for the web?

Open Help > Feedback in Excel for the web, describe the formula and #VALUE! result, and submit the feedback to Microsoft.