Fix Excel CELL Format Function Returning #NUM! Error After Recalculation
Question details
The user is encountering a #NUM! error when using the CELL("format") function in Excel, which works initially but fails upon recalculating the sheet with F9 or Shift+F9.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Using the CELL function to retrieve cell formatting information and subsequently triggering a manual recalculation.
- Observed behavior
- The formula successfully returns the formatting code upon initial entry but turns into a #NUM! error immediately after recalculation via F9 or Shift+F9.
Save your current workbook to prevent data loss, and ensure your Microsoft Office application is updated to the latest stable release.
Test Excel in Safe Mode
Running Excel in Safe Mode helps determine if a third-party add-in or extension is causing the #NUM! error upon recalculation.
Safe mode starts Excel with basic functionality, bypassing customizations and add-ins. This is a critical first step to isolate whether the issue stems from the core application or an external conflict.
Ensure all open workbooks and Excel windows are fully closed.
Press the Windows Key + R simultaneously on your keyboard to open the Run window.
Type excel /safe in the text box and press Enter or click OK.
Create a new worksheet, enter your =CELL("format", A1) formula, and press F9 to see if the #NUM! error still occurs.

Isolate the Issue in a New Workbook
Creates a clean environment to check if the error is due to workbook corruption rather than an application-wide bug.
Rename the Office Registry Key
Resets Excel's configuration settings by recreating the registry key, which can resolve persistent application defects.
Avoid Insider Build Bugs with WPS Office
If Microsoft Excel preview builds are causing unexpected #NUM! errors with standard functions like CELL, consider switching to WPS Office. It provides a highly stable, lightweight, and free environment for your spreadsheet tasks, unaffected by experimental Office updates.
- 1. Download WPS Office: Visit the official WPS website to download the free installation package for your operating system.
- 2. Install the application: Run the installer and follow the simple on-screen instructions to set up the software.
- 3. Open your spreadsheets: Launch WPS Spreadsheet and instantly open your existing Excel workbooks to work without calculation errors.

Frequently Asked Questions
Why does the CELL format function suddenly return a #NUM! error?
While #NUM! normally indicates an invalid numerical argument, in this specific scenario, it is often tied to an application defect in Microsoft Office Insider or preview builds that triggers when forcing recalculation (F9).
How can I check if I am using an Office preview build?
Open Excel, navigate to File > Account, and look under the 'Product Information' section. Click 'About Excel' to view your current version and build number.
Will this error permanently damage my workbook?
No, this is a calculation display issue within the Excel application itself. The data and structure of your workbook remain perfectly safe.
What should I do if the registry fix doesn't work?
If none of the troubleshooting steps resolve the issue, ensure you test with the latest supported stable Office build and report the reproducible defect directly to Microsoft support.




