How to Fix Excel Repairing Workbooks and Replacing Formulas with Values
Question details
The user is experiencing an issue where Excel displays a repair message upon opening a workbook, and formulas are unexpectedly removed or replaced by their calculated values.

- Product
- Microsoft Excel
- Device & OS
- macOS / Windows
- Scenario
- Opening an existing, complex Excel workbook, often after a software update or a long editing history.
- Observed behavior
- Excel triggers an automatic repair process that strips out formulas and replaces them with static values. This issue persists even after reinstalling the Office application.
Before attempting to fix the file, create a duplicate backup copy of your corrupted workbook and save it in a separate folder to ensure your remaining data is not permanently lost during the repair process.
Clean Up the Name Manager and Custom Styles
Removing excessive or broken defined names and custom cell styles can resolve the workbook complexity issues that trigger Excel's automatic repair prompt.
Workbooks with a long editing history often accumulate hidden background data. Damaged defined names or thousands of unused custom cell styles can corrupt the file's XML structure, causing Excel to strip formulas to salvage the document.
Navigate to the 'Formulas' tab on the top ribbon and click on 'Name Manager'.
Review the list for any names that display errors (such as #REF!) or refer to deleted sheets. Select these broken names and click 'Delete'.
Go to the 'Home' tab, open the 'Cell Styles' gallery, and right-click to delete any unnecessary, corrupted, or duplicated custom styles.

Rebuild the Workbook Using Paste Special
If the original file continues to trigger repair messages, migrating the data to a fresh workbook is the safest way to preserve your formulas without carrying over the corruption.
Avoid File Corruption with WPS Office
If Microsoft Excel continues to corrupt your complex workbooks and remove vital formulas, try WPS Office. It is a free, highly compatible, and lightweight Office alternative designed to handle complex spreadsheets smoothly without unexpected data loss.
- 1. Download WPS Office: Visit the official WPS website and download the free WPS Office suite for your operating system.
- 2. Install the software: Run the installer and follow the on-screen instructions to complete the setup.
- 3. Open your workbook: Launch WPS Spreadsheets and open your Excel file to view and edit your formulas safely.

Frequently Asked Questions
Why does Excel replace my formulas with values during repair?
When Excel detects severe corruption in a workbook's underlying XML structure—often due to excessive custom styles, broken defined names, or unsupported objects—it attempts to salvage the data by stripping out complex elements. Unfortunately, this process converts functional formulas into static text or values.
Will reinstalling Microsoft Office fix workbook repair errors?
Not typically. If the corruption is embedded within the specific workbook file (such as damaged styles or an overloaded name manager), reinstalling the application will not resolve the issue. You must clean or rebuild the file itself.
How can I prevent Excel workbooks from becoming corrupted?
To minimize the risk of file corruption, avoid accumulating unused custom cell styles, regularly clear out broken links in the Name Manager, keep file sizes manageable, and maintain regular backups of your important spreadsheets.
Can I recover the formulas if they have already been replaced by values?
Once Excel has saved the repaired file where formulas are replaced with values, the formulas cannot be reversed or retrieved from that specific file. You must restore a previous backup of the workbook to recover the original formulas.




