Unwrapping and unmerging corrupted, encrypted, or improperly merged Excel files can restore your data when Excel opens them as single sheets instead of their original structure. The solution depends on whether the file is "flattened" (merged into one sheet) or locked with encryption—here’s how to fix it safely.
What You'll Need
- A working version of Microsoft Excel (2016 or later, or Excel for Office 365)
- An external drive, USB, or cloud service (Google Drive, OneDrive) to save backups
- Admin rights to modify Excel settings (if using macros or advanced options)
- A secondary workbook for testing (optional, to avoid overwriting)
Step-by-Step
- Check if the file is encrypted:
Open the Excel file. If you see a password prompt or an "This file is locked" warning, the file is encrypted. If that happens:
- Click File > Info > Protect Workbook > Encrypt with Password to remove the password.
- Enter the password, then click OK. Excel will prompt you to save the file. Re-save it as unmerged_[originalname].xlsm (or .xlsx if no macro).
- If you don’t remember the password, try common defaults (e.g., "password" or "123456"), or use third-party tools like ExcelDept Unlocker (for a one-time fee) but backup your file first.
- Open a new, blank workbook. This will be your "clean slate" for restoration.
- Go to File > Open, select the corrupted file, and click Open and Edit (not "Open").
- Excel will prompt: "This workbook contains multiple worksheets that have been merged into a single worksheet. Would you like to unmerge them?" Click Yes.
- Excel will now ask where to save the new workbook. Choose a new filename (e.g., restored_[originalname]), then save it as .xlsx (not .xlsm).
- Now inspect the new workbook: right-click the original sheet tab > Rename. If names are missing, Excel may not have saved them. Fix this:
- Select the sheet tab > right-click > Rename (if the sheet name is blank). Type a meaningful name, then press Enter.
- If all sheet tabs are blank, Excel may have lost formatting. In the new workbook, manually add sheet names by clicking Insert > Sheet and naming each new tab.
- Open the file in Excel for Mac (if available) or LibreOffice Calc (free alternative). These tools often handle legacy merges better.
- In LibreOffice, go to Tools > Options > LibreOffice Calc > Advanced > Unflatten Sheets and check "Apply to entire workbook." Click OK to unmerge.
- Save the restored file as .xlsx in Excel.
Common Mistakes
- Saving as .xlsm instead of .xlsx: Macro files (.xlsm) may still show errors if they’re corrupted. Always save as .xlsx after unmerging.
- Ignoring sheet names: If Excel doesn’t restore sheet names during unmerge, rename tabs manually to avoid confusion.
- Using the wrong "Open and Edit" option: Selecting "Open" (without "Edit") may trigger a corrupted save cycle. Always choose Open and Edit.
- Not backing up before password removal: If the password is complex, encrypting again could lock you out permanently. Always test password changes on a backup file first.
Tips
- For large files: Use File > Options > Add-ins > Manage Excel Add-ins > Go > Check for Add-ins to enable the "Unflatten Sheets" add-in (if available).
- Recover lost sheet names: Sort sheets alphabetically (right-click sheet tab > Sort by Name) to visually locate missing names.
- Cloud files? If the file is in OneDrive/Google Drive, download it to your PC, unmerge it, then re-upload the new .xlsx file.
- Test in a secondary workbook: Always work in a copy first to avoid accidental overwrites.
Troubleshooting
- Unmerge doesn’t work after clicking "Yes":
The file may be so corrupted that Excel can’t access the original sheet structure. Try:
- Open the file in a text editor (like Notepad) and look for corrupted XML markers (e.g., `
` tags missing). If you see gibberish, the file is beyond repair. - Use a free tool like Excel Repair Tools to attempt recovery. Warning: These tools may not preserve formatting.
- Open the file in a text editor (like Notepad) and look for corrupted XML markers (e.g., `
- Password remains stuck:
The password could be complex or tied to a workbook property. Try this:
- Open the file in VBA editor (Alt + F11). Look for a Workbook_Open macro that might be forcing encryption.
- If found, disable or delete the macro, then save as .xlsx. If you can’t edit VBA, try a third-party unlocker (again, back up first!).
- Sheets still merged after all steps: The file might be a Power Query or PivotTable source. In Excel, go to Data > Get Data > From File > From Workbook, then manually unmerge the linked data.