Fix Excel CELL Function Returning #VALUE! in OneDrive Web
Question details
The =CELL() function returns a #VALUE! error when evaluating the worksheet name in a browser environment.

- Product
- Excel for the Web
- Device & OS
- not provided
- Scenario
- Opening and viewing a spreadsheet containing the CELL function via OneDrive or Excel for the Web.
- Observed behavior
- The formula correctly outputs the worksheet name in the desktop application but evaluates to a #VALUE! error in the web browser.
Verify whether you are currently viewing the spreadsheet in a web browser (Excel for the Web) or using the fully installed desktop application.
Open the Workbook in the Excel Desktop Application
Switching from Excel for the Web to the desktop application resolves the issue because the desktop environment fully supports the CELL function's file path extraction.
Excel for the Web has certain feature limitations compared to the desktop version. The CELL function, particularly when using the "filename" info type, relies on the local file system path, which is restricted and unavailable in a browser environment.
Look at the top ribbon menu while viewing your spreadsheet in Excel for the Web.
Click the 'Viewing' or 'Editing' dropdown menu on the ribbon, then select 'Open in Desktop App'. Alternatively, click the direct 'Open in Desktop App' button if it is visible on the main ribbon.
If prompted by your web browser, click 'Open Excel' or 'Allow' to launch the local application and calculate the formula correctly.

Edit Complex Spreadsheets Offline with WPS Office
Avoid browser-based feature limitations by using WPS Office. It provides a full-featured desktop spreadsheet application that perfectly handles advanced functions, without the compatibility issues of web-only environments.

Frequently Asked Questions
Why does the CELL function work on my desktop but not in OneDrive?
The CELL function, specifically with the "filename" argument, needs to read the local file path to function. Excel for the Web operates in a browser without access to your local directory, resulting in a #VALUE! error.
Is there a web-compatible alternative function to extract the sheet name?
Currently, Excel for the Web does not offer a built-in equivalent function to automatically extract the worksheet name. Users must either manually type the name or use the desktop application to calculate it.
Will the #VALUE! error in the web browser break my Excel file?
No, the error only displays while you are viewing the file in the web browser. The underlying formula remains completely intact and will calculate correctly once you open the workbook again in the desktop version.




