How to Repair Excel with Command Lines on Windows

Yesterday, my Excel files were corrupted, and I received a message saying that the .xlsx is corrupted and cannot be opened. Then, my computer asked if I would like to recover the contents. How can I repair this Excel file on my computer?

Best Answered by

Dany· Answered on Feb 27, 2023

We will introduce how to repair Excel with command lines and if you are not familiar with the command lines, you can try an Excel repair program. EaseUS Data Recovery Wizard for Excel repairs corrupted Excel spreadsheets (.xls, .xla, .xlsx). With it, you can recover Excel 2019, 2016, 2013, 2010, 2007, and more.

 Download for Win Recovery Rate 99.7%
 Download for Mac Trustpilot Rating 4.6

Step 1. Open EaseUS file repair software and scan the disk for damaged files. With the use of this file repair software, you can easily repair Word, Excel, PPT, and PDF files that have been damaged.

Step 2. This software will scan your chosen disk and find all the corrupted Excel files.

Step 3. The EaseUS file repair option will fix your damaged Excel file automatically

If some Windows functions aren't working or Windows OS crashes, use the System File Checker to scan Windows and restore your files. But the SFC scannow command can only solve the system file corruptions. Thus, if you want to repair Excel files from command lines, you can't run this command.

But you can run CHKDSK, which is an advanced built-in error checker of Windows to check and repair hard disks. If a file system problem on the disk is causing the Excel file to fail to open, you can try the following command line to fix the error.

Step 1. Open the Search box, and type in CMD. Don't forget to right-click the Command Prompt and choose "Run as administrator".

Step 2. Type CHKDSK F: ?f ?r ?x (you should replace ? with a slash), hit Enter. You can replace F with your drive letter (Where you store your Excel files).

Use EaseUS Data Recovery Wizard to recover deleted or lost files easily and quickly.

Tutorials on how to recover lost, deleted, or formatted data from HDD, SSD, USB, SD card, or other storage media on Windows and Mac.

People Also Ask

How to Delete Files Older Than 30 Days with PowerShell

You can delete files older than 30 days with PowerShell, and there are other solutions to delete these files. We will introduce all the possible ways in this passage.


Mar 09, 2023

How to Delete Batch Files of a Folder but Not Subfolders

It is possible to delete files in a folder and keep the subfolders, and you need to use command lines in Command Prompt. Learn the details by reading the following passage.


Mar 09, 2023

How to Recover Data Deleted by Robocopy Command on Windows

While using a Robocoy command or script, enter the wrong path will cause data loss. The best way to recover these files deleted by Robocopy command is to download a data recovery program.


Mar 09, 2023

How to Repair a Corrupted Workbook? Check Your Full Guide

Does your Excel Workbook get corrupted? If you are looking for a useful way, well, you are lucky there. On this page, these methods are built around a damaged workbook, and we will teach you how to repair a corrupted workbook in Windows 10. Join us and keep reading.


Feb 27, 2023

How to Turn on AutoSave in Word 2007/2010/2013/2016/2019

How to turn on AutoSave in Word to back up Word documents automatically? You can learn how to turn on AutoSave in Word on Windows 10 in this article. Besides, a useful way to recover lost Word documents is still covered here.


Feb 27, 2023

How to Repair Excel File 2013 [Fix Corrupted Excel 2013]

This article tells you how to identify and repair Excel 2013 in Windows 10/8.1/8/7. You can repair Excel files with EaseUS file repair software - EaseUS Data Recovery Wizard. Or, you can repair corrupted files with the built-in Open and Repair option.


Feb 27, 2023