Fix CELL Filename Formula #VALUE! in Excel for the Web
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.

- 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.
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.
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.
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.
In desktop Excel, select File > Save or Save As and save the workbook if it has not already been saved.
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!.

Send Microsoft feedback about the web limitation
Request support for the formula in Excel for the web if you need to use it in a browser.
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.

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.




