Formula Errors

Fix Excel CELL Function Returning #VALUE! in OneDrive Web

Amos GikundaAmos Gikunda Nov 3, 2026 869 views

Question details

The =CELL() function returns a #VALUE! error when evaluating the worksheet name in a browser environment.

How to Fix Excel CELL Function Returning #VALUE! in OneDrive Web
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.
Before you start

Verify whether you are currently viewing the spreadsheet in a web browser (Excel for the Web) or using the fully installed desktop application.

Solution 1Recommended

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.

1
Locate the Ribbon Menu

Look at the top ribbon menu while viewing your spreadsheet in Excel for the Web.

2
Select 'Open in Desktop App'

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.

3
Allow the Browser Prompt

If prompted by your web browser, click 'Open Excel' or 'Allow' to launch the local application and calculate the formula correctly.

Open the Workbook in the Excel Desktop Application
Web Address Output Behavior: If the file is synced via OneDrive, opening it in the desktop app might return the OneDrive web address URL instead of a local C:\ drive path. Ensure your downstream text-extraction formulas (like FIND or MID) are adjusted to handle URL string formats.
Free Microsoft Office alternative

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.

Fully compatible with Microsoft Excel file formats (.xlsx, .xls, .csv).Comprehensive support for advanced formulas, reducing unexpected #VALUE! errors.Lightweight application that works seamlessly offline.Free to download with a highly intuitive, tabbed user interface.
microsoft office alternative - wps office

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.