473,606 Members | 2,877 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Corrupt excel .XLSX file

1 New Member
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 7897
Luuk
1,047 Recognized Expert Top Contributor
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
mackenna
3 New Member
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
Demi1538524
1 New Member
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
thomassalvo01
1 New Member
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
48972
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 Excel on my machine and have opened other Excel files with that extension but this one I get the following error: "Excel cannot open the file 'Test.xlsx' because the file format or file extension is not valid. Verify that the file has not...
0
2056
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 Source=""Modified.xlsx"";Extended Properties=""Excel 12.0;HDR=NO;IMEX=1""". i get an error...ADODB.Connection error '800a0e7a' Provider cannot be found. It may not be properly installed.
0
1955
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 server from the one file was uploaded, I am using postgres bytea datatype to save the file in database using below code PreparedStatement ps = con.prepareStatement( "UPDATE tk_tablename SET tk_filecolumnname = ? WHERE...
0
1753
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 error The conerter failed to open the file. Please help me Did i mistake anything in my code. upload the file: fileOutStream = new FileOutputStream(newFileName); xlsxWorkbook.write(fileOutStream);
3
3961
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 : 32343.58 ( The values return from the cell while read the data from that cell). I also used the Spreadsheet::XLSX::Utility2007;Spreadsheet::XLSX::Fmt2007; module to get the correct date but not yet resolve. Can any one give me the idea to...
2
2159
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 ‘ΡΧ—“ŸΣ *Σ šŸšš™Ν‘š—Σ ‘›š I used "Spreadsheet::XLSX" module to get the data from the file. Please check and provide some solution to resolve the problem.
0
2241
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 'xl\worksheets\sheet1.xml' into the xmlDocument. But after that it looks almost impossible to get data out of it. This is my code: xml.Load(TempFolder + "xl\\worksheets\\sheet1.xml"); XmlNodeList elemList = xml.SelectNodes("/worksheet/sheetData");
4
4112
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' 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. (OK)" I hit Ctrl-Shift-i to get the code for that error (101590) Any ideas how to repair?
0
8031
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
7962
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8456
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8443
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8107
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8315
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6792
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5467
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
1309
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.