Solutions to Repair Corrupt Excel File 2013 | Stellar

Solutions to Repair Corrupt Excel File 2013 | Stellar

Ian Lv13

Solutions to Repair Corrupt Excel File

Summary: MS Excel can throw various errors due to corrupted Excel files. This blog discusses the error messages that indicate Excel file corruption and the methods to prevent data loss due to a corrupt file. It also discusses the reasons behind the corruption in Excel file and their solutions. It also mentions a “Stellar repair for Excel” tool that can help to repair the corrupt or damaged Excel file.

Free Download for Windows

Is your Excel file corrupted? And you don’t have backup of your data? There is no need to worry. There are some simple solutions to repair Excel file 2019. But before heading towards the solutions, let’s discuss the possible reasons for Excel file corruption and how you can prevent losing your data.

Error Messages that Indicate Excel File Corruption

When an Excel file gets corrupted, different error messages appear. For example:

  • “Excel found unreadable content in . Do you want to recover the content of this workbook, click Yes.”
  • “Can’t find project and library.”
  • “The workbook cannot be opened or repaired by Microsoft Excel because it is corrupted.”
  • “Microsoft Excel has stopped working.”

Reasons Behind Excel File Corruption

The reasons for corruption in Excel file could be any of the following:

  • Improper system shutdown
  • Computer virus/malware attack/Hacker attack
  • Outdated anti-virus definition
  • Hardware failure
  • Unintentional deletion of files
  • Large Excel files
  • Bad sectors on storage media

How to Avoid Data Loss Due to Excel File Corruption?

Excel users should follow the below precautionary measures to prevent data loss due to Excel file corruption:

1. Create an Automatic Backup Copy

When you create an Excel spreadsheet, it is advised to Save As your document, as follows:

  1. In Save As window, click Tools next to Save option.
  2. Select General Options from the drop-down menu.
  3. Then check the dialogue box Always create back up and click OK.

Enable automatic backup by clicking Tools next to Save in the Save As window, choosing General Options, checking the Always create backup box, and clicking OK.

This will always create a backup of your Excel. If it’s deleted or corrupted at any time, it can be recovered.

2. Create Recovery File at Different Time Periods

Steps are as follows:

  1. Go to File and then click Excel Options.
  2. Click Save and then select the Save Auto Recover information every checkbox
  3. Add the required minutes and location. Ensure that Disable AutoRecover for this workbook only box is unchecked.

Access Excel Options from the File menu, navigate to Save, enable Save AutoRecover with specified minutes and location, and ensure the Disable AutoRecover for this workbook only box is unchecked.

Methods to Repair Corrupted Excel 2019 File

Try using these 5 methods to restore your Excel file and recover data:

Method 1: ‘Open and Repair’ Excel Files

Excel automatically opens the corrupted file in Recovery Mode. If not, you can repair Excel file manually through the following steps:

  • Click on the File and select Open.

File and select Open

  • Go to the location where the corrupt workbook is stored. In the Open window, select the corrupt file.
  • Click Open and then select Open and Repair.
  • In the window that opens, click Repair.

If the Repair option doesn’t work, you can select Extract Data and try to extract the values and formulae safely from the corrupt file.

Method 2: Recover Data from Open Workbook

If you face issues while working in an Excel file, you can choose to return to the last saved version of the Excel file. For this:

  • Click File. Then select Open.
  • Double click on the name of the workbook (the one that is open in your Excel).
  • Click Yes to reopen it.

Navigate to the File menu, select Open, double-click on the open workbook's name in Excel, and confirm by clicking Yes to reopen the workbook.

  • The workbook will now appear.

Please note that it will show the last saved version and changes made after that won’t be recovered.

Method 3: Set Calculation Option as Manual

You can also recover data from Excel workbooks that you’re unable to open. For this, you need to configure the calculation option as manual in Excel. You can do this through the following steps:

  • Click on File. Select New and open a Blank workbook.
  • From File, select Excel Options.

Microsoft Excel - Home Options

  • From the Formulas category, under the section Calculation options, select Manual. Now click OK.

Access the Formulas category, go to Calculation options, choose Manual, and confirm the changes by clicking OK.

  • Then click File, and select Open to open the corrupted or damaged Excel file.

You can also recover specifically the content (leaving formulas/calculated values) from the workbook by using external references (to link Excel workbook). For this:

  • Click on File, Select Open.
  • Navigate to the folder that contains the corrupted workbook.
  • Now, right-click on the file name of the corrupted workbook and click Copy.
  • Click File button. Then, select New and create another blank workbook.
  • In the first cell (A1), type =!A1 and press Enter.
    • Select the corrupted workbook in the Update Values dialogue (if it appears). Then click OK.
    • Select the relevant sheet in the Select Sheet dialogue (if it appears). Then click OK.

Microsoft Excel - Dialog box

  • Again, select the cell A1, go to Home and select Copy.
  • Now select (start from the cell A1) an area equal to that of the data in the original workbook.
  • Go to Home now and select Paste.
  • Again, go to Home, and Copy the data (the same selection of cells).
  • Go to Home, and then click on the arrow below Paste. Then click on Values.

By pasting values, you removed the links to the corrupted workbook and only the data is left behind.

Method 5: Excel Repair Software

If the above-mentioned methods do not help in repairing the corrupt Excel file, try an Excel repair software.

One of the most commonly used Excel repair tools is Stellar Repair for Excel. Its trial version is available for free download, which lets you scan and preview the repaired Excel files. Once you’ve ascertained the effectiveness of the software, you can save the file after activating the software.

Here’s the complete repairing process of the corrupt Excel file

Conclusion

This post shared the reasons behind Excel file corruption and precautionary measures to prevent data loss. It also outlined different methods to repair corrupt Excel file 2019. There are several in-built utilities in Microsoft Excel to repair corrupt workbooks and recover data from it. In case these methods didn’t work, you can use Stellar Repair for Excel – an easy-to-use DIY tool that can fix all Excel corruption errors and restore data with all original properties.

How Can I Recover Corrupted Excel File 2016?

Error Messages Indicating Corruption in Excel File

  • But sometimes, you encounter the “Excel cannot open this file” error message due to corruption in the file.

Excel-cannot-open-this-file

Why does Excel File turn Corrupt?

Following are some common reasons that can turn an Excel file corrupt:

  • Large size of the Excel file
  • The file is virus infected
  • Hard drive on which Excel file is stored has developed bad sectors
  • Abrupt system shutdown while working on a worksheet

Workarounds to Recover Data from Corrupt Excel

The workarounds to recover corrupted Excel file 2016 data will vary depending on whether you can open the file or not.

How to Recover Corrupted Excel File 2016 Data When You Can Open the File?

If the corrupt Excel file is open, try any of the following workarounds to retrieve the data:

Workaround 1 – Use the Recover Unsaved Workbooks Option

If your Excel file gets corrupt while you are working on it and you haven’t saved the changes, you can try retrieving the file’s data by following these steps:

  • Open your Excel 2016 application and click on the Open Other Workbooks option.

open-other-workbooks

  • Click the Recover Unsaved Workbooks button at the bottom of the ‘Recent Workbooks’ section.

recover-unsaved-workbook

  • A window with list of unsaved Excel files will open. Click the corrupt file you want to open.

This will reopen your last saved version of the Excel workbook. If this method doesn’t work, proceed with the next workaround.

Workaround 2 – Revert to Last Saved Version of your Excel File

If your Excel file gets corrupt in the middle of making any changes, you can recover the file’s data if the changes haven’t been saved. For this, you need to revert to the last saved version of your Excel file. Doing so will discard any changes that may have caused the file to turn corrupt. Here’s how to do it:

  • In your Excel 2016 file, click File from the main menu.
  • Click Open. From the list of workbooks under Recent workbooks, double-click the corrupt workbook that is already open in Excel.
  • Click Yes when prompted to reopen the workbook.

Excel will revert the corrupt file to its last saved version. If it fails, skip to the next workaround.

Saving an Excel file in SYLK format might help you filter out corrupted elements from the file. Here are the steps to do so:

  • From your Excel File menu, choose Save As.
  • In ‘Save As’ window that pops-up, from the Save as type dropdown list, choose the SYLK (Symbolic Link) option, and then click Save.

symbolic link format

Note: Only the active sheet will be saved in workbook on choosing the SYLK format.

  • Click OK when prompted that “The selected file type does not support workbooks that contain multiple sheets”. This will only save the active sheet.

Workbooks contain multiple sheets warning msg

  • Click Yes when the warning message appears - “Some features in your workbook might be lost if you save it as SYLK (Symbolic Link)”.

  • Click File > Open.
  • Browse the corrupt workbook saved with SYLK format (.slk) and open it.
  • After opening the file, select File > Save As.
  • In ‘Save as type’ dialog box, select Excel workbook.
  • Rename the workbook and hit the Save button.

After performing these steps, a copy of your original workbook will be saved at the specified location.

How to Recover Corrupted Excel File 2016 Data When You Cannot Open the File?

If you can’t access the Excel file, apply one of these workarounds to salvage the file’s data.

Workaround 1 – Open and Repair the Excel File

Excel automatically initiates ‘File Recovery’ mode on opening a corrupt file. After starting the auto-recovery mode, it attempts to reopen and repair the corrupt Excel file at the same time. If the auto-recovery mode does not start automatically, you can try to fix corrupted Excel file 2016 manually by using ‘Open and Repair’. Follow these steps:

  • Open a blank file, click the File tab and select Open.
  • Browse the location where the corrupt 2016 Excel file is stored.
  • When an ‘Open’ dialog box appears, select the file you want to repair.
  • Once the file is selected, click the arrow next to the Open button, and then click the Open and Repair button.
  • Do any of these actions:
  • Click Repair to fix corrupted file and recover data from it.
  • Click Extract Data if you cannot repair the file or only need to extract values and formulas.

repair excel file

If performing these actions doesn’t help you retrieve the data, proceed with the next workaround.

Workaround 2 – Disable the Protected View Settings

Follow these steps to disable the protected view settings in an Excel file:

  • Open a blank 2016 workbook.

blank excel file

  • Click the File tab and then select Options.

Excel file options

  • When an Excel Options window opens, click Trust Center > Trust Center Settings.

open excel trust center settings

  • In the window that pops-up, choose Protected View from the left side navigation. Under ‘Protected View’, uncheck all the checkboxes, and then hit OK.

disable-protected-view-settings

Now, try opening your corrupt Excel 2016 file. If it won’t open, try the next workaround.

If you only need to extract Excel file data without formulas or calculated values, use external references to link to your corrupt Excel 2016 file. Here’s how you can do it:

  • From your Excel file, click File > Open.
  • From the window that opens, click Computer and then click Browse and copy the name of your corrupt Excel 2016 file. Click the Cancel button.

browse corrupted excel file

  • Go back to your Excel file, click File > New > Blank workbook.

new excel workbook

  • In the new Excel workbook, type “=CorruptExcelFile Name!A1” in cell A1 to reference cell A1 of the corrupted file. Replace the ‘CorruptExcelFile Name’ with the name of the corrupt file that you have copied above. Hit ENTER.
  • If ‘Update Values’ dialog box appears, select the corrupt 2016 Excel file, and then click OK.
  • If ‘Select Sheet’ dialog box pops-up, select a corrupt sheet, and press the OK button.
  • Select and drag cell A1 till the columns required to store the data of your corrupted Excel file.
  • Next, copy row A and drag it down to the rows needed to save the file’s data.
  • Select and copy the file’s data.
  • From the Edit menu, choose the Paste Special option and then select Values. Click OK to paste values and remove the reference links to the corrupt file.

Check the new Excel file for recoverable data. If this didn’t work, consider using an Excel file repair tool to retrieve data.

Alternative Solution to Recover Excel File Data

Applying the above workarounds may take considerable time to recover corrupted Excel file 2016. Also, they may fail to extract data from a severely corrupted file. Using Stellar Repair for Excel software can help you overcome these limitations. The software helps repair severely corrupted XLS/XLSX file and retrieve all the file data in a few simple steps.

free download

Key benefits of using Stellar Repair for Excel are as follows:

  • Recovers tables, pivot tables, images, charts, chartsheets, hidden sheets, etc.
  • Maintains original spreadsheet properties and cell formatting
  • Batch repair multiple Excel XLS/XLSX files in a single go
  • Supports MS Excel 2019, 2016, 2013, and previous versions

Check out this video to know how the Excel file repair tool from Stellar® works:

Conclusion

Errors such as ‘the file is corrupt and cannot be opened’, ‘Excel cannot open this file’, etc. indicate corruption in an Excel file. Large-sized workbook, virus infection, bad sectors on hard disk drive, etc. are some reasons that may result in Excel file corruption. The workarounds discussed in this article can help you recover corrupted Excel file 2016 data. However, manual methods can be time-consuming and might fail to extract data from severely corrupted workbook. A better alternative is to use Stellar Repair for Excel software that is purpose-built to repair and recover data from damaged or corrupted Excel file.

Resolve Compile Error in Hidden Module in Excel: Causes & Solutions

The hidden module in Excel refers to a container with VBA codes, custom queries, and complex macros. The compile error in a hidden (protected) module in the Excel worksheet usually occurs when doing different activities on a macro-enabled sheet, such as merging .xls files. The error can result in macros execution failure. You need to quickly resolve this compile error to restore full functionality of the VBA code. Below, we’ll be discussing the solutions to fix this Excel error. But before that, let’s see why this error occurs.

You may encounter the Compile error in hidden module due to one of the following reasons:

  • The code in the workbook is not compatible with the Excel application.
  • Manual queries created in a previous version are no longer compatible with your current version of Excel.
  • Missing references.
  • Invalid .exe files (control information cache files) are automatically created with ActiveX control insertion in Excel file.
  • Protected module is corrupted.
  • The workbook with hidden module is damaged or corrupted.
  • Incompatible add-ins.
  • Incompatible Excel file version.
  • The module is protected or password-protected.
  • Missing or corrupted mscomctl.ocx file.

Excel can throw the compile error while compiling the code that exists in the protected module. So, first check the error and identify the hidden module that is creating the issue. You can unprotect the module. Also, ensure that you have permission to access the VBA code in the module. If the error still exists, follow the below troubleshooting methods.

Method 1: Re-register ActiveX Control Files or mscomctl.ocx Files

You can get the compile error in the Excel file, containing the VBA code related to ActiveX controls or OCX files. The ActiveX control files and OCX files (mscomctl.ocx files) are the components of Microsoft’s standard controls library. The compile error in the hidden module can occur if these files are missing. In this case, you can use the Regsvr32 tool to re-register the OCX files. The Regsvr32  is a command-line utility to register and unregister OLE controls in the Windows registry.

Method 2: Delete .exd Files

 The .exd files are temporary files created by Excel when inserting ActiveX controls objects. These temporary files can lead to a compile error if they are corrupted. So, if this issue has occurred, particularly in the Excel file containing ActiveX controls, then deleting .exd files might fix the issue. To delete the .exd file, follow the below steps:

  • First, open the Run window by pressing the Windows+R keys.

Open The Run Window

  • In the Run window, type %appdata%.

Type App Data Command

  • In the Roaming window, click on the Microsoft option.

Click On Microsoft Option Under Roaming

  • Under Microsoft, you will see a list of folders. Search and click on Forms.
  • Right-click on a file with .exd extension and select Delete.
  • Once you delete the .exd files, restart your Excel application.

Method 3: Rollback the Office Updates

MS Office updates or upgrades may also cause the compile error in hidden module in Excel. If the error has occurred after downloading the recent Microsoft Office updates, try reverting to the previous version or uninstalling the recent updates to fix the issue.

Method 4: Unselect Missing References

The compile error in hidden module determine path in Excel can also occur if your file contains a reference to object library/type library, which is labelled as Missing. You can locate, check, and uncheck the references marked as ‘Missing’ to fix the issue. Here are the steps:

  • Open your Excel and press Alt + F11 keys.
  • The Visual Basic Editor is displayed.

Visual Basic Editor

  • Go to the Tools option and then click References.

Click On References Under Tools Option

  • In the References-VBAProject window, under Available References, search and unselect the references starting as “Missing”.

Unselect Missing References

  • Click OK.

Method 5: Check the Code in Module

The compile error in hidden module can occur if there are issues in the code within the module. The problems include incorrect or missing syntaxes, missing parameters/references, or the code contains incompatible functions or a wrong name of the object. You can check and fix these issues in the code by opening the VBA editor.

Method 6: Check and Remove Add-ins

In Excel, the compile error in macro-enabled files can also occur due to incompatible add-ins. You can check and disable the add-ins in Excel using the below steps:

  • First, open the Run window and type excel /safe and then click OK. The Excel application will open in safe mode.
  • Now try to open the affected Excel file. If it opens without the error, then check and remove the latest installed Excel add-ins.
  • Navigate to the File option and then select Options.
  • In the Excel Options window, click Add-ins.

Click Addins Select Latest Addins

  • Under Add-ins, search and select the latest add-ins, and then click on Go.
  • In the Add-ins window, uncheck the add-ins and then click OK.

Select  Analysis Toolpak

  • Restart Excel and then check if the error is fixed or not.

Method 7: Repair the Corrupt Excel File

Corruption in the Excel file can affect the macros in the hidden module, which may result in the compile error. In such a case, you can try repairing the Excel file using Microsoft’s inbuilt utility -Open and Repair. To use this tool, follow these steps:

  • Open your Excel application.
  • Click the File tab and then click Open.
  • Click Browse to select the affected workbook.
  • The Open dialog box will appear. Click on the corrupted file.
  • Click the arrow next to the Open button and then Open and Repair.
  • You will see a dialog box with three buttons - Repair, Extract Data, and Cancel.

Click On Repair Option

  • Click on the Repair button to recover as much of the data as possible.
  • After repair, a message is displayed. Click Close.

Message Appear After Repair

What if None of the Above Solutions Works?

If the above methods fail to get rid of the “compile error in hidden module” in Excel, then use an Excel repair tool such as Stellar Repair for Excel. This tool is specifically designed to repair the corrupted Excel file. It can recover all the components from corrupted Excel file (macros, queries, formulas, etc.) without changing their original formatting. The tool is compatible with all Excel versions and can be downloaded on a Windows system. You can download the free trial version of Stellar Repair for Excel to scan the corrupted Excel file and preview the data.

Closure

You can get the “compile error in hidden module” when Excel detects any issue while compiling the code in a protected module. It can occur when there is an issue with the macro-enabled Excel workbook or Excel add-ins. You can follow the above-mentioned methods to fix the issue. If the error occurs due to corruption in the database file, then you can try Stellar Repair for Excel . It can repair severely corrupted Excel files. It also helps recover all the Excel workbook’s components, including macros and queries. The tool has a simple and user-friendly interface.

How to Fix a Corrupted .xls File? The Everything Guide

Undoubtedly, Excel is so powerful that it can help you to process, analysis, and store data, in masses.

That’s the reason it has been there for years and helping this world in data.

But…

With all those powers comes some nasty problems which no Excel users like to face. Can you guess what I’m talking about?

Think about a Corrupted Excel File. Nightmare? Isn’t it?

And do you remember that last time when you have opened a workbook and you got a message that this workbook is might corrupt?

The TRUTH is, this is something which you cannot avoid, but, you can prepare yourself in the best way and deal with it like a PRO.

So today, in this post, I’d like to share with you to everything you need to know about a corrupt Excel file (.xls), why it happens, how to fix it like a PRO, and much more.

…let’s get started.

Note: In this post, we’ll be covering the .xls version (which is the extension for the file which is created in Excel 2007 or the earlier versions) and if you want to know about the new version, here’s the quick fix for that.

Why My Excel File Got Corrupted?

There can be one or multiple reasons for an Excel file to get corrupted. Below I have detailed about some of the major of them.

1. Large Excel File

You can store data in a workbook the way you want but sometimes using excessive thing can make an Excel file bigger in size.

And that kind of data files can crash at any point in time. Here are a few things which make the Excel files heavy, like

  • Conditional Formatting.
  • Colors formatting.
  • Using merged cells in place of text alignment.
  • Volatile functions: Formulae that iterate every time you open or change a cell value; OFFSET, NOW.
  • Using a complete column or row as a reference than the data set range.
  • Using complex formulas; VLOOKUP in place of Index/Match, Nested If in place of MAXIFS, MINIFS.
  • Calculations or reference across workbooks.

Related: How to Fix Formatting Issues in Excel

2. Abrupt System Shutdown

Shutting down the system without following the procedure can corrupt your data file.

This shut down can be due to a power failure or any other unexpected technical challenges.

So it is always important to follow the procedures and shut down your system properly to avoid data losses.

3. Infected Excel File (Virus Attack)

This is the most common and obvious reason for Excel file corruption.

Although we always keep our system safe using various Antiviruses, still there is always a probability of virus attacks and loss of important files.

It is always advised to use a safe and strong antivirus compatible with your system requirements.

What are the Signs to Know When an Excel File is Corrupted?

In this section, we will discuss what are the signs which you can get when an Excel file is corrupted, let’s dig into it.

1. The File is Corrupt and Cannot Be Opened

This is one of the most common messages you can see when your workbook is corrupted.

But there is also a chance that it is just because of the version compatibility where you have a .xls file but you are using the latest version of Excel check out this detailed post by Priyanka

2. We Found a Problem with some Content in this File…

There’s another error message which you can get while opening a file:

We Found a Problem with some content in Do you want us to recover as much as we can? If you trust the source of this workbook, click yes.

There are a lot of applications out there (I think almost every) which exports the data as a .xls format. Those files have a greater chance of having this kind of error.

3. “Filename.xls” cannot be accessed

There can also be a situation where you get the error:

“Filename.xls” cannot be accessed. The file may be corrupted, located on a server that is not responding.

Well, this message is a bit misleading.

You won’t be able to decide that your file is actually corrupted or just not on the location.

My Excel File Got Corrupted, now What Should I Do?

There are many ways to recover the data from the corrupt excel files. But before you start, it is always advised to create a copy of the corrupted file.

You can save a lot of time with Stellar Repair for Excel, which make data recovery just with few clicks.

But before you go for a data recovery software, let’s try out some manual steps which can help.

When a workbook get corrupted the first thing comes to the mind is to recover data from it…

…and you what there’s a simple option there in the Excel which you can use to do this. Below are the steps you need to follow:

  • First of all, open the Excel and click on the office icon.

  • After that, go to the “Open” and select the file which is corrupted.

  • Now, click on the open drop-down and select “Open and Repair”.

  • At this point, you have two options:
  1. Repair File
  2. Extract Data

Let’s get into both of these options one by one…

1. Repair File

This option helps you to repair the file and the moment you click on it it takes a few seconds afterward and shows you the result with a message box and also provide you a log file.

And once it is done with repairing, you’ll get your file opened and you can save that file as a new copy.

Yes, that’s it.

2. Extract Data

If somehow you aren’t able to get your file repaired, you can also extract data from that file using “Extract Data” option.

Even in this option, you can get data in two ways.

  1. As Values
  2. With Formulas

In the first option, Excel simply extracts data as value ignoring all the formulas driving those value (which is the best way if you just need to have that data back ).

But in the second option, Excel tries to recover the formulas as much as possible.

Check out this smart technique by Jyoti which you can use it you aren’t able to recover data from the file.

Preventions to Not to have any Excel File Go Corrupt in Future

Future is fragile, what I’m trying to say is the more you work in Excel and process data there could be a chance that your workbook goes corrupt.

If there’s no security then what an EXCEL POWER user should do?

Well, there are few things which you can do or take care of while working with Excel so that you won’t have to worry about corruption of Excel workbooks.

Let’s see what you can do…

1. Change Recalculation Option

Now here’s the thing when you work with a hell lot of data, there a common thing that you gotta using formulas. Right?

But, the thing these formulas are something which makes your Excel file slows down sometimes make them go corrupt.

There’s one small tweak you can do in your workbook is change the calculation method.

Now with the manual calculation, you just need to whenever you open your file it won’t recalculate all the formulas.

And when you update your data you can simply click on the “Calculate Now” and it will calculate all the formulas again.

Quick Tip: Beware of Volatile Functions and use them with caution as recalculates them every time you change something in the worksheet.

2. Use VBA Codes Instead of Formulas

Now, this is what I do when I need to use complex formulas in a workbook.

Here’s how you can do this: Let’s say you have a formula in the cell A1, like below, which calculates the age.

=“You age is “& DATEDIF(Date-of-Birth,TODAY(),”y”) &” Year(s), “& DATEDIF(Date-of-Birth,TODAY(),”ym”)& “ Month(s) & “& DATEDIF(Date-of-Birth,TODAY(),”md”)& “ Day(s).”

Now, instead of simply entering it into the cell A1 which I would write a macro code which inserts this formula into the cell A1 and then convert it into the a value.

Here’s the code:

Sub CalculateAge()
Range(“B1”).Value = _
“=””Your age is “”” & _
“&DATEDIF(A1,TODAY(),””y””)” & _
“&”” Year(s), “”” & _
“&DATEDIF(A1,TODAY(),””ym””)” & _
“&”” Month(s), and “”” & _
“&DATEDIF(A1,TODAY(),””md””)” & _
“&”” Days(s).”””
Range(“B1”) = Range(“B1”).Value
End Sub

Note: To write these code you need to have basic understading of VBA (make sure check out this guide for this).

3. Use a File Recovery Application

Recently we asked a quick question to our readers on ExcelChamps that if they have ever faced a situation where they got a corruption message in Excel.

You’ll be astonied to hear that 50% percent of the people said “YES” they faced this thing in the past.

Now, this is alarming, if you are heading a team or you have a bunch of people in your company who use Excel…

…there’s a high probability that half of them gonna face this issue. So the best way to deal with this to have an App FIX your Excel file for you.

With STELLAR REPAIR FOR EXCEL, you just need a few clicks, yes that’s right. Let me show you with the below steps:

  • First of all, download the app and install it (it’s simple).

download

  • After that, open the app and click on the “Browse” and simply select the file which is corrupted.

  • In the end, click on the REPAIR to let the Excel repair software fix your file (it takes a few seconds).

Once you complete repairing your file, you’ll get a message in your on the status bar and after that, you can open your file.

Final Thoughts

If you are a POWER Excel user then there’s a must for you to have known how to deal with a situation where you got a corrupt Excel file.

But I must recommend you to TRY OUT Stellar Repair for Excel so that’s you don’t have to worry about your Excel files anymore.

I’m sure you found this post helpful, and please don’t forget to share this tip with your colleagues, I’m sure they’ll appreciate it.

How to Fix Excel Formulas Not Working Properly | Step-by-Step Guide

Summary: Excel formulas sometimes fail to function correctly and even return an error. This article explains what you might be doing wrong that prevents Excel formulas from working properly and solutions to resolve the issue. If your formulas have disappeared from the Excel spreadsheet and you are having trouble recovering them, you can use an Excel repair tool to recover the formulas.

Free Download for Windows

When working with Excel formulas, situations may arise when the formula doesn’t calculate or update automatically. Or, you may receive errors by clicking on a formula.

Problems Causing the ‘Excel Formulas not Working Properly’ Issue and Solutions

Let’s check out the possible reasons that cause Excel formulas to work properly and solutions to resolve the issue.

Problem 1 – Switching Automatic to Manual Calculation Mode

Automatic and manual are the two modes of calculation in Microsoft Excel.

By default, Excel is set to automatic calculation mode. Everything is recalculated automatically when any changes are made in a worksheet in this mode. You may switch from automatic to manual mode to disable the recalculation of formulas, particularly when working with a large Excel file with too many formulas.

Excel will not calculate automatically when set to manual calculation mode. And this may make you think that the Excel formula is not working properly.

Solution – Change Calculation Mode from Manual to Automatic

To do so, perform these steps:

  • Click on the column with problematic formulas.
  • Go to the Formulas tab, click the Calculation Options drop-down, and select Automatic.

Automatic to Manual Calculation Mode

Problem 2 – Missing or Mismatched Parentheses

It’s easy to miss or incorrectly place parentheses or include extra parentheses in a complex formula. If a parenthesis is missing or mismatched and you click Enter after entering a formula, Excel displays a message window suggesting to fix the issue (refer to the screenshot below).

Missing or Mismatched Parentheses

Clicking ‘Yes’ might help fix the issue. But Excel might not fix the parentheses properly, as it tends to add the missing parentheses at the end of a formula which won’t always be the case.

Solution – Check for Visual Cues When Typing or Editing a Formula with Parentheses

When typing a formula or editing one, Excel provides visual cues to determine if there’s an issue with the parentheses inserted in a formula. Checking for these visual cues can help you fix missing/mismatched parentheses.

  • Excel helps identify parenthesis pairs by highlighting them in different colors. For instance, the pair of parenthesis outside is black.
  • Excel does not make the opening parentheses bold. So, if you’ve inserted the last closing parentheses in a formula, you can determine if your parentheses are mismatched.
  • Excel helps identify parentheses pairs by highlighting and formatting them with the same color once you cross over them.

Problem 3 – Formatting Cells in an Excel Formula

When adding a number in an Excel formula, don’t add any decimal separator or special characters like $ or €. You may use a comma to separate a function’s argument in an Excel formula or use a currency sign like $ or € as part of cell references. Formatting the numbers may prevent the formula from functioning correctly.

Solution – Use Format Cells Option for Formatting

Use Format Cells instead of using a comma or currency signs for formatting a number in the formula. For instance, rather than entering a value of $10,000 in your formula, insert 10000, and click the ‘Ctrl+1’ keys together to open the Format Cells dialog box.

Format Cells Option

Problem 4 – Formatting Numbers as Text

Numbers are displayed as left-aligned in a sheet in a worksheet, and text formatted numbers are right-aligned in cells. Excel considers numbers formatted as text to be text strings. Thus, it leaves those numbers out of calculations. As a result, a formula won’t work as intended. For example, in the following screenshot, you can see that the SUM formula works correctly for normal numbers. But, when the SUM formula is applied to numbers formatted as text, the formula doesn’t return the correct value.

Cells Formatted as Text

Sometimes, you may also see an apostrophe in the cells or green triangles in the top-left corner of all the cells when numbers in those cells are formatted as Text.

Solution – Do Not Format Numbers as Text

To fix the issue, do the following:

  • Select the cells with numbers stored as text, right-click on them, and click Format Cells.
  • From the Format Cells window, click on Number and then press OK.

Format Cells in Excel

Problem 5 – Double Quotes to Enclose Numbers

Avoid enclosing numbers in a formula in double-quotes, as the numbers are interpreted as a string value.

Meaning if you enter a formula like =IF(A1>B1, “1”), Excel will consider the output one as a string and not a number. So, you won’t be able to use 1’s in calculations.

Solution – Don’t Enclose Numbers in Double Quotes

Remove any double quotes around a number in your formula unless you want that number to be treated as text. For example, you can write the formula mentioned above as “1” =IF(A1>B1, 1).

Problem 6 – Extra Space at Beginning of the Formula

When entering a formula, you may end up adding an extra space before the equal (=) sign. You may also add an apostrophe (‘) in the formula at times. As a result, the calculation won’t be performed and may return an error. This usually happens when you use a formula copied from the web.

Solution – Remove Extra Space from the Formula

The fix to this issue is pretty simple. You need to look for extra space before the equal sign and remove it. Also, ensure there is an additional apostrophe added in the formula.

Other Things to Consider to Fix the ‘Excel Formulas not Working Properly’ Issue

  • If your Excel formula is not showing the result as intended, see this blog .
  • When you refer to other worksheets with spaces or any non-alphabetical character in their names, enclose the names in ‘single quotation marks’. For example, an external 5reference to cell A2 in a sheet named Data enclose the name in single quotes: ‘Data’!A1.
  • You may see the formula instead of the result if you have accidentally clicked the ‘Show Formulas’ option. So, click on the problematic cell, click on the Formula tab, and then click Show Formulas.
  • If you’re getting an error “Excel found a problem with one or more formula references in this worksheet”, find solutions to fix the error here .

Conclusion

This blog discussed some problems you might make causing an Excel formula to stop working properly. Read about these common problems and solutions to fix them. If a problem doesn’t apply in your case, move to the next one. If you cannot retrieve formulas in your Excel sheet, using an Excel file repair tool like Stellar Repair for Excel can help you restore all the formulas. It does so by repairing the Excel file (XLS/XLSX) and recovering all the components, including formulas.

Free Download for Windows

[Fixed] Excel Cannot Open the File Because the File Format or File Extension Is Not Valid

When opening an older version of an Excel file in a newer version, you may encounter the “Excel cannot open the file because the extension is not valid” error. This happens if you have accidentally renamed the file with a different file format or an incorrect file extension. Also, you may get the ‘Excel cannot open the file’ error if the file has become unreadable or corrupted.

This is how the complete Excel error message looks like:

“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.”

Excel Cannot Open the File Extension Not Valid Error

Check out this video for a quick demonstration of how to fix “Excel Cannot Open the File Because the File Format or File Extension Is Not Valid”

How to Fix the ‘Excel Cannot Open the File Because the File Format or Extension Is Not Valid’ Error?

Try any of these workarounds to fix the error and regain access to your Excel file data:

Workaround 1 – Change the Default File Format

By default, an Excel file is saved in .xlsx or .xls file format. Trying to open the file with a different or incorrect extension may cause the ‘Excel cannot open the file because the extension is not valid’ error. To fix the error, try changing the Excel default file format by following these steps:

Note: Take a backup of the Excel file that you cannot open and try the steps on the backup copy.

  • In Excel 2010 and newer versions, click on the File menu.

Note: For Excel 2007 and earlier versions, click on the Office button.

  • On the left panel, click on Options
  • In ‘Excel Options’ window, under Save workbooks section, click on the Save files in this file format: drop-down. Select a file format (i.e., the one supported by your Excel version).

Save Workbook in Other File Format

  • Click OK.

Check if you can open your Excel file. If not, try the next workaround.

Workaround 2 – Edit the Excel File Permissions

You may receive the ‘Excel file format or file extension is not valid’ error if you lack sufficient permissions to open the file. Usually this happens when you try to open an Excel file received from some other user. Follow these steps to change the file permissions and see if it fixes the problem:

  • Right-click on the file that won’t open and click Properties.
  • In the file properties dialog box, click the Security tab and then hit the Edit button.

Edit Excel File Properties

  • When the file’s permissions dialog box appears, click on the Add button.

Add Excel File Permissions

  • Click on the Advanced button from the ‘Select Users or Groups’ window.

Open Advanced Settings

  • Select Find Now. A list of all users and groups will get displayed in a search results box. Choose Everyone group from the list and hit OK.

Select Everyone Group

  • You can see the ‘Everyone’ group in the ‘Enter the object names to select’ textbox. Click OK once again to return to the file’s permission dialog box.

Everyone Group is Added Users Groups

  • Click Everyone from the Group or user names: box and check all the checkboxes under Allow.

Allow Permissions for Everyone

  • Click on Apply and then OK.

Now try to open the Excel file. If you’re still getting the Excel file cannot open error, use the following workaround.

Workaround 3 – Recover Unsaved Workbook

If the ‘Excel file extension not valid error’ occurs when attempting to open an unsaved workbook, do the following to recover the unsaved workbook:

  • In Excel, click File. 
  • From the Info screen, under Manage Versions, click Recover Unsaved Workbooks.

Recover Unsaved Workbooks

Excel will list any unsaved files. Try opening the file and save it. If this doesn’t work, skip to the next workaround.

Workaround 4 – Repair the Workbook

If none of the above workarounds has worked for you, chances are that the Excel file has become corrupted. Try to repair the file using the Excel inbuilt ‘Open and Repair’ utility by following these steps:

  • In your Excel application, click on File > Open.
  • In the ‘Open’ dialog box that pops-up, select the Excel file you want to repair and click the arrow next to the Open button.

Select Excel File for Repairing

  • From the dropdown list, select Open and Repair.

Open and Repair Excel File

  • Excel will ask you to attempt to repair the file or extract data from it. Click Repair to retrieve maximum data. If the Repair option fails, click on Extract Data to recover the data without formulas and values.

Repair Excel File

If the ‘Open and Repair’ utility doesn’t help fix the corrupted file and/or recover the data, use an Excel repair tool  such as Stellar Repair for Excel to regain access to your file and its data.  

free download

Stellar Repair for Excel software can help repair severely corrupted XLS and XLSX files. Also, it helps recover all the file components, including tables, pivot tables, cell comments, charts, chart sheets, images, formulas, etc., without impacting the original structure of the Excel file. 

To learn how the software works, read this: How to repair corrupt Excel file using Stellar Repair for Excel?

Conclusion

You may encounter the error ‘Excel cannot open the file because the extension is not valid’ when opening a workbook with a different file format or an incorrect file extension. Also, the error may occur if the Excel file has turned corrupt. This article has covered some of the most effective workarounds to resolve the error. But if nothing works, you can try to repair the Excel file and retrieve its data using the Stellar Repair for Excel software.

How to Repair Excel Document on a Flash Drive

Summary: Microsoft Excel files are stored on flash drives if they need to be transferred between systems or if they need to be backed up. But sometimes unforeseen issues can corrupt the Excel sheets stored on flash drives. When that happens, it can be an arduous task to repair Excel documents on a flash drive. Through this post let us try to understand the reasons why Excel sheets stored on flash drives can get corrupted and how users can resolve them easily.

Free Download for Windows

In this digital age, we all work with computers, files, and documents. Flash drives or USBs are common ways of storing data in an external place. Be it for a meeting or for a party playlist, these devices come handy when one wants to transfer data or access the files stored elsewhere.

You may need to access your data from another location. That’s when a USB flash drive might come in handy. And, that’s exactly why Excel sheets too end up on flash drives; either that or for backup purposes. However, there are many instances where an Excel file stored in a USB gets corrupted when one tries to access the file. The error message you get while trying to open the Excel file would be a great clue for figuring out the exact reason behind corruption.

This blog will provide insights into what are the reasons for the corruption of a USB and how the users can repair Excel on flash drive that has been corrupted.

Reasons for USB inaccessibility

Sometimes flash drives or USBs can become unresponsive due to numerous reasons. There are two types of corruption – logical and physical. Physical corruptions occur due to broken stems and connectors, broken circuits, NAND gate, not recognised, RAW, need to format, not accessible, and dead drives (no power supply).

One of the main reasons behind such an error could be that the USB drive has been infected by some virus. This can affect any file – not only the ones which are there in the USB drive but also the ones which are there in the PC/Laptop where you connect the USB drive. It is recommended that you scan the USB drive with reliable antivirus software to detect viruses.

There can be various other reasons that may make your USB corrupt or unresponsive. But there are very slim chances that you will be able to recover a flash drive that has physical damage. However, you can try to run the check disk on the USB drive to fix the drive. We will be discussing this as you read on.

Recovery Methods for Corrupted Flash Drives

There are 3 tried and tested recovery methods. Try them and see which one works out for you.

  1. Restoring Excel Files from Windows backup

To bring back your old Excel files, fixing up the corrupt file is your best option. Importantly note that this method would work only if your system’s Windows backup option has been enabled.

Step-by-step process for restoring your older Excel files:

  • Connect your USB drive
  • Go to “My Computer”->USB Drive->Check if the file exists
  • Right click on the excel file and click on the restore previous versions

Restore Previous Versions

  • You will now see a list of older versions which were created
  • Select one the backups and click on “restore”
  1. Using Command Line to Recover Excel Files

In case you are looking to repair Excel on flash drive, you can also resolve it by using the command line. Just follow the below steps to see if you can recover the excel files.

  • Connect your USB Flash drive
  • Open “Run” (press Windows+R) and then open “cmd”

Windows+R cmd

  • Type “attrib -h -r -s /s /d (USB Drive Letter):\*.*” where the (USB Drive Letter) is the drive letter you can find using “My Computer”
  • Once this has been completed, Windows will start repairing your files
  • After the process gets over, try accessing the excel file to see if the data has been recovered
  1. Running a “Check Disk” on flash drives

Follow the below steps while the USB flash drive has been plugged into your computer:

  • Open “Run” and then open “cmd”
  • Type in “chkdsk /X /f (USB Drive Letter)” where the “(USB Drive Letter)” is the letter of the corrupted USB Drive. You can get this letter easily from the “My Computer”.

chkdsk  command prompt

It will now check your disk to and correct any corrupted records.

What if none of these methods works?

In case none of the above methods works to repair Excel document on a flash drive, then you would need a professional Excel repair software such as Stellar Repair for Excel to restore your files. Such software not only help repair corrupted Excel files on flash drives but also help in recovering the data stored within them in their original format.

Stellar Repair for Excel resolves corruption problems in Excel files and recovers all formulas, charts, cell formatting, and more from them. It can repair multiple Excel files in one go. Equipped with a fully interactive GUI, working with this product is extremely easy.

Free Download for Windows

To sum it up

Although flash drives are quite popularly used, they are not the most reliable of storage devices. These drives can fail anytime without warning. Thus, always back up your data on other more robust devices instead of flash drives. We hope that with the above tried and tested methods you will easily be able to repair Excel document on flash drive if need be. For any queries that you have, feel free to leave a comment below!


Also read:

  • Title: Solutions to Repair Corrupt Excel File 2013 | Stellar
  • Author: Ian
  • Created at : 2024-05-20 10:20:29
  • Updated at : 2024-05-21 10:20:29
  • Link: https://techidaily.com/solutions-to-repair-corrupt-excel-file-2013-stellar-by-stellar-guide/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
Solutions to Repair Corrupt Excel File 2013 | Stellar