7

I'm trying to restore some files for a friend who messed up a USB stick by pulling it out of the computer too soon. By searching invisible partitions I was able to restore the files. All files are intact, except 1 excel file that seems to be corrupted.

I've googled about ways to repair an Excel file, because the default repair options in Excel 2003-2010 do not work for this file. I've came across a numerous third-party apps, of which the one seemes to be able to do the job: Recovery Toolbox for Excel.

Of-course, this and all other apps I found require a purchase to actually repair the file. It seems a bit silly to pay 30 dollars for a one time thing, and something that is not for myself. So, I would like to keep that as a last-resort option.

Is there anything I can try to fix this? I've attached a screenshot of how the file looks when I open it on my OSX when converted to a HTML file (to view the code), for the option that it could be a character set problem.

enter image description here

8
  • is the extension xls or xlsx?
    – kokbira
    May 18, 2011 at 11:54
  • The extension is .xls!
    – sv88
    May 18, 2011 at 11:59
  • 2
    @pnuts That's a good point and I agree. However, what I'm running into is the trialware that I've checked allows me to repair the file and view a preview of the content. If I try to save it, it prompts me to buy the full version. I think in the file repair industry, you can't afford to allow a one-off since most people need just the one file.
    – gillytech
    May 10, 2013 at 17:25
  • When you say corrupt, When you open it with Excel you get an Error? What is the Error? Does it instantly close excel, or does it let you use the sheet? You most likely do not need software. May 11, 2013 at 13:48
  • 1
    I've rewritten the question to better match what you're really looking for and making it more on topic. I've also voted to re-open. View this meta post for more details on how to ask more questions like these in the future. May 13, 2013 at 18:35

3 Answers 3

10

It’s not guaranteed to work but one thing to try is to see whether OpenOffice or LibreOffice can open the file(s). Those software suites are certainly more tolerant of dodgy Word files and I have rescued a few docs this way.

5
  • Seems like this is definitely worth a go. Will try this tonight.
    – sv88
    May 18, 2011 at 12:09
  • did either of these work?
    – datatoo
    May 18, 2011 at 16:22
  • Unfortunately both displayed a blank spreadsheat..
    – sv88
    May 18, 2011 at 18:14
  • Sorry to hear that.
    – Linker3000
    May 18, 2011 at 22:47
  • @SjoerdV Then why is this marked as the correct answer?
    – Jan Doggen
    Sep 9, 2014 at 9:55
7

Courtesy TechRepublic. where the Figures are located:

1: Let Excel try

If Excel’s automatic recovery mode fails, there’s a manual feature for recovering a corrupted workbook:

  1. Choose Open from the File menu. In Excel 2007, click the Office button and select Open.
  2. Using the Look In control, locate and specify the corrupted workbook.
  3. From the Open button’s dropdown list, shown in Figure A, choose Open And Repair.
  4. If this is your first attempt to manually recover the workbook, click Repair in the resulting dialog box, shown in Figure B.

Figure A

Attempt to manually recover a corrupted workbook.

Figure B

You can repair a workbook or extract the data from a corrupted workbook.

If you’re lucky, Excel will repair the file. However, this feature recovers files when something goes wrong with Excel, so it won’t recover every corrupted file. Once you’ve made every attempt to recovery the file, you might have to make do with recovering just the data. When that’s the case, click Extract Data in step 4.

2: If the corruption occurs while the workbook is open

If corruption occurs while the workbook is open, do not save the workbook. You’ll just save whatever corrupted the workbook along with the most recent changes. Instead, revert to the last saved version. Doing so, without saving first should discard the corrupted component. You’ll possibly lose data, but often, you can rebuild quickly enough (a good reason to save your work often). To revert to the last saved version, do the following:

  1. Choose Open from the File menu. In Excel 2007, click the Office button and select Open.
  2. Using the Look In control, locate and specify the corrupted workbook.
  3. Click Open.

You’re really just reopening the workbook - there’s nothing special going on.

3: Disable automatic calculation

If Excel fails to open the file on its own or via the Open And Repair option, try setting the calculation method to manual and try again. To reset the calculation setting:

  1. Open a new blank workbook.
  2. From the Tools menu, choose Options and click the Calculation tab. In Excel 2007, click the Office button, click Excel Options, and select Formulas in the panel to the left.
  3. In the Calculation section (Calculation Options in Excel 2007), click Manual.
  4. Click OK.

Then, try to open the corrupted workbook. Sometimes Excel can open a corrupted workbook if it doesn’t have to recalculate.

4: Try Microsoft Office Tools

If Excel can’t open the corrupted workbook, give Microsoft Office Tools a whirl:

  1. From the Start menu, choose All Programs (in Windows XP).
  2. Select Microsoft Office.
  3. Choose Microsoft Office Tools.
  4. Select Microsoft Office Application Recovery.
  5. In the resulting dialog box, shown in Figure C, choose Microsoft Office Excel.
  6. Click Recover Application. The process could take a few minutes.
  7. Respond to the Send Report To Microsoft prompt.

Figure C

Office Tools might recover a corrupted workbook.

The recovery tool will close Excel and then restart it, displaying a list of recovered workbooks (if any). If you’re lucky, your corrupted workbook will be in the list. Simply open it and count your blessing.

5: Move the file

Sometimes, a corrupted workbook isn’t really corrupted in the traditional sense. It just isn’t accessible as usual; networks and servers often mask errors as corrupted files. If you encounter a seemingly corrupted workbook that Excel can’t repair, move the corrupted file to another folder, drive, or server.

6: Let the competition try

Some people claim extraordinarily good results using OpenOffice Suite, a free open source alternative to Microsoft Office. This suite’s Excel counterpart, Calc, should open a corrupted Excel file. Unfortunately, it means a lengthy download, but if it works, it’s well worth the effort.

7: Open the corrupted workbook in WordPad or Word

If you can’t repair the workbook, try opening it in WordPad. If it works, WordPad will convert everything to text - but you’ll be one step closer to recovering important data. Unfortunately, this method won’t recover formulas. On the other hand, unlike many other data recovery methods, WordPad will recover your VBA procedures (macros). Simply search recovered text for Sub and Function to find them. You might also be able to open the corrupted .xls file in Word, but the results will be limited. For this method to work, you must install the Microsoft Office Excel converter. And unlike WordPad, Word won’t recover your procedures.

8: Use external references

Sometimes, you can recover data by referring to the actual cells in a corrupted workbook. You won’t recover formulas, formats, charts, macros, and so on, but recovering the data is better than recovering nothing. To recover data by referencing the corrupt workbook, do the following:

  1. Open a new workbook and enter into cell A1 a formula in the following form to reference A1 in the corrupted workbook: =nameofcorruptedworkbook!A1. (You don’t need to include .xls in the filename.)
  2. Press Enter.
  3. If the corrupted workbook isn’t in the same folder, Excel will display the Update Values: nameofcorruptedworkbook dialog box. Use the Look In control to locate the corrupted file. Select the file and click OK.
  4. If the Select Sheet dialog box appears, as shown in Figure D, select the appropriate sheet and click OK. Excel will display the value in cell A1 of the corrupted workbook.
  5. Select cell A1 and drag it across as many columns as needed to accommodate the data in the corrupted file. If Excel displays the Update Values: nameofcorruptedworkbook dialog box, select the corrupted file and click OK.
  6. Repeat step 5., copying row A down as many rows as necessary to accommodate the data in the corrupted file.
  7. Select the data and choose Copy from the Edit menu.
  8. Select Paste Special from the Edit menu and choose Values, as shown in Figure E.
  9. Click OK.

Figure D

If the corrupted file has multiple sheets, specify a sheet.

Figure E

Replace the referencing formulas with data.

9: Try SYLK format to recover data

Microsoft recommends using the SYLK format to filter out corrupted elements, especially if the corruption is printer related. You must be able to open the corrupted workbook for the following to work:

  1. From the File menu, choose Save As. In Excel 2007, click the Office button.
  2. From the Save As Type control, choose SYLK (Symbolic Link) (*.slk), as shown in Figure F.
  3. Give the active sheet a descriptive name, such as corruptedworkbooknameSheet1. If the workbook has only one sheet, this step is unnecessary.
  4. Click Save.
  5. If the workbook has multiple sheets, Excel will ask you if you want to continue because the selected format doesn’t support multiple sheets. Click OK.
  6. If Excel prompts you with a warning that the workbook might contain features that aren’t compatible with the SYLK format, click Yes.

Figure F

Save each sheet using the SYLK format.

It’s important to know that the SYLK format saves only the active sheet. However, you won’t notice that the format has stripped all of the pages but the active one until you close and reopen the .slk file. To recover data from all the sheets, you must reopen the corrupted workbook and save each sheet individually. That’s why step 3. instructs you to give the sheet a descriptive name. You’ll find those names helpful when reconstructing the multiple-sheet workbook. After saving all the sheets to the SYLK format, open one of the .slk files and rename it using the .xls format. Be careful not to use the corrupted workbook’s name. Once you’ve reconstructed the workbook, you can discard the corrupted file or rename it, freeing up the original name. Don’t replace it until you’re sure you’ve recovered as much data as possible. Then, reconstruct the workbook by importing or copying data from the .slk files. It’s a tedious process, but worth the effort if nothing else works. This method saves values resulting from formulas, but not the formulas themselves.

10: Recover macros

If you can recover data but not macros via one of the previous tips, you can still save macros - at least sometimes. To try, do the following:

  1. Open Excel, but don’t open the corrupted workbook.
  2. Set the calculation mode to Manual (see #3).
  3. Choose Macro from the Tools menu, select Security, and choose the High option. In Excel 2007, click the Office button, click Excel Options, and choose Trust Center in the left panel. Then, click the Trust Center Settings button, select Macro Settings in the left panel, select Disable All Macros Without Notification in the Macro Settings section, and click OK twice.
  4. Open the corrupted workbook. If Excel opens the workbook, you’ll see a notice that the macros are disabled. If Excel shuts down, this method won’t work.
  5. Press Alt+F11 to open the Visual Basic Editor (VBE).
  6. Using the Project Explorer (press Ctrl+R), right-click a module, and choose Export File.
  7. Enter a name and folder for the module.
  8. Repeat steps 6. and 7. as many times as necessary to export all the modules.
  9. Close the VBE and exit Excel.
  10. Open a new blank workbook (or the newly constructed workbook that contains recovered data from the corrupted workbook) and import the modules.
2
  • 1
    Was able to solve that issue in past also opening it in gnumeric another free calc software
    – frlan
    Aug 27, 2014 at 16:14
  • You should have added working screenshots for better understanding.
    – Stephen
    Aug 6, 2016 at 8:59
0
  1. Upload the corrupted spreadsheet to Google Drive.
  2. Right-click on the spreadsheet and select Open with -> Google Sheets. Google Sheets will convert the spreadsheet to its own spreadsheet format for editing in Google Sheets.
  3. From the open spreadsheet in Google Sheets select File -> Download as -> Microsoft Excel (.xlsx). Google Sheets will convert the spreadsheet to .xlsx format.
  4. Open the .xls document that you downloaded from Google Drive in Excel.

Google Sheets does a good job of converting spreadsheets to .xlsx format. The two file conversions in Google Sheets may remove whatever there is in your original spreadsheet that was causing the problem. This method also works for recovering corrupted .ods format spreadsheets.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .