473,395 Members | 1,783 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Corrupt excel .XLSX file

1
Hey guys,
i have a couple of excel .XLSX files that i have been trying to open but i haven't had any luck with then excel says "excel cannot open filename.xlsx because the file format or file extension is not valid. verify that the file has not been corrupted and that the file extension matches the format of the file"
May 8 '15 #1
4 7855
Luuk
1,047 Expert 1GB
And? What is your question regarding this?

Can you give more info on how these files got corrupted?

Do you have a backup?

What have you tried to solve the problem before posting here?
May 8 '15 #2
A corrupt excel spreadsheet can be repaired by using Open and Repair technique. It is a built-in repair function that opens a corrupt excel file forcefully.
*Open MS Excel > press Ctrl+O > locate corrupt excel spreadsheet and select it.
*Click on the arrow shown beside Open button > select Open and Repair.
It will take just a few seconds to be completed and selected file will be opened, if possible.
Aug 7 '16 #3
Hi,Ronars

When an Excel file is corrupted, then you can try several methods to recover it:

1. First of all, you can try to repair the file manually in Excel, as follows:

(1) On the File menu, click Open.
(2) In the Open dialog box, select the file you want to open, and click the arrow next to the Open button.
(3) Click Open and Repair, and then choose which method you want to use to recover your workbook.


2. If method 1 fails, there are still several methods to recover your Excel file manually with Excel, including writing a small VBA macro

3. Third, there are also free tools from third-parties that can open and read Microsoft Excel files, for example,

3.1 OpenOffice . This is a very famous open source project that is designed to support Office file formats, including Excel files. The software can run under Windows.

3.2 KingSoft Spreadsheets . This is a free Windows tool that can open Excel files.

Sometimes when Excel fails to open your file, these tools may be able to open it successfully. If that is the case, then after the Excel file is opened, you can just save it as a new file which will be error-free.

4. For xlsx files, they are actually a group of files compressed in Zip file format. Therefore, sometimes, if the corruption is only caused by the Zip file, then you can use Zip repair tools such as WinRAR to repair the file, as follows:

4.1 Assuming the corrupt Excel file is a.xlsx, then you need to rename it to a.zip
4.2 Start WinRAR, go to "Tools > Repair Archive" to repair a.zip and generated a fixed file a_fixed.zip.
4.3 Rename a_fixed.zip back to a_fixed.xlsx
4.4 Using Excel to open a_fixed.xlsx.

There may still be some warnings when opening the fixed file in Excel, just let ignore it and Excel will try to open and repair the fixed file. If the file can be opened successfully, then you can just save the contents into another error-free file.

5. If all above methods do not work, then you may try third-party tools such as DataNumen Excel Repair

It provides a free demo version so that you can try to see if the data you want can be recovered or not.

Good luck!
Aug 8 '16 #4
When an Excel file is corrupted, then you can try several methods to recover it:

1. First of all, you can try to repair the file manually in Excel, as follows:

(1) On the File menu, click Open.
(2) In the Open dialog box, select the file you want to open, and click the arrow next to the Open button.
(3) Click Open and Repair, and then choose which method you want to use to recover your workbook.

You may find more information about this at:

http://office.microsoft.com/en-us/ex...001034656.aspx (for Excel 2003)
http://office.microsoft.com/en-us/ex...017.aspx?CTT=1 (for Excel 2007)
http://office.microsoft.com/en-us/ex...840.aspx?CTT=1 (for Excel 2010)
http://office.microsoft.com/en-us/ex...554.aspx?CTT=1 (for Excel 2013)

2. If method 1 fails, there are still several methods to recover your Excel file manually with Excel, including writing a small VBA macro, as below

http://office.microsoft.com/en-us/ex...#_Toc337637262
Apr 10 '17 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Doogie | last post by:
Can anoyne tell me why this VBScript will create the file to Excel just fine, but the Excel file will not open up? I am saving it as a xlsx file instead of an xls one and I have the new version of...
0
by: user1980 | last post by:
hello.. i am developing a page in asp to open an .xlsx file and display its contents.. i have used this connection string sConn = "Provider=Microsoft.ACE.OLEDB.12.0;Data...
0
by: Amit Kumar M | last post by:
Hi, I am using apache POI to read a xlsx file and upload the data in the database. I have to do this work in a scheduler(at scheduled time) running on Jboss. As scheduler is running on different...
0
by: Kumaraguru | last post by:
Hi I have load the xlsx file in blob using POI when i tried to download the xlsx file from blob the xlsx file got saved but its not openening. when i tried to open the file its giving following...
3
by: Ramkumar85 | last post by:
Hi All, I have received some other date value from the .xlsx file. Used the Spreadsheet::XLSX module to read the data from the file. Source file value : 19/07/1988 14:00:00 The actual data :...
2
by: Ramkumar85 | last post by:
Hi All, I received the some other foreign character while read the data from xlsx file. Source xlsx file data : ΠΣ15 ΑΡΧΗΓΟΣ ΠΣ ΚΟΚΚΙΝΑΚΗΣ ΑΛΚ Output for the data : Î*Σ15 ΑΡΧΗΓΟΣ Î*Σ...
0
by: djpaul | last post by:
Hello, I'm trying to load a xlsx file into an XmlDocument and want to read some values within that document. What I did: Extract the Xlsx file to a temporary folder and loaded the...
4
by: PeterRee | last post by:
I have a user who was working on an Excel 2007 file from a thumbdrive.. all of a suddem the file will not open and generates the following error: "Excel cannot open the file 'filename.xlsx'...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.