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

  1. 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:
    1. Click File > Info > Protect Workbook > Encrypt with Password to remove the password.
    2. 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).
    3. 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.
  2. If the file opens as a single sheet: This means Excel flattened all sheets into one. To undo this:
    1. Open a new, blank workbook. This will be your "clean slate" for restoration.
    2. Go to File > Open, select the corrupted file, and click Open and Edit (not "Open").
    3. Excel will prompt: "This workbook contains multiple worksheets that have been merged into a single worksheet. Would you like to unmerge them?" Click Yes.
    4. 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).
    5. Now inspect the new workbook: right-click the original sheet tab > Rename. If names are missing, Excel may not have saved them. Fix this:
      1. Select the sheet tab > right-click > Rename (if the sheet name is blank). Type a meaningful name, then press Enter.
      2. 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.
  3. For .xls or older formats (pre-2007): If the file was saved as .xls (compressed) or .xlsm (macro-enabled) and still doesn’t unmerge, try this:
    1. Open the file in Excel for Mac (if available) or LibreOffice Calc (free alternative). These tools often handle legacy merges better.
    2. In LibreOffice, go to Tools > Options > LibreOffice Calc > Advanced > Unflatten Sheets and check "Apply to entire workbook." Click OK to unmerge.
    3. 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

  1. Unmerge doesn’t work after clicking "Yes": The file may be so corrupted that Excel can’t access the original sheet structure. Try:
    1. 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.
    2. Use a free tool like Excel Repair Tools to attempt recovery. Warning: These tools may not preserve formatting.
  2. Password remains stuck: The password could be complex or tied to a workbook property. Try this:
    1. Open the file in VBA editor (Alt + F11). Look for a Workbook_Open macro that might be forcing encryption.
    2. 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!).
  3. 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.

Frequently Asked Questions

How can I undo a merge in Excel if I accidentally merged sheets?

Unmerging requires reopening the file in "Edit" mode (File > Open > Open and Edit), clicking "Yes" to unmerge, then saving as a new .xlsx file.

What if Excel won’t let me open the file because it’s "locked"?

The file is encrypted. If you can’t remember the password, try common defaults, use a password recovery tool (like ExcelDept Unlocker), or contact the file creator for a copy.

How do I restore sheet names if Excel won’t display them after unmerging?

Right-click each sheet tab > Rename. If names are missing, Excel may have lost them—manually add names by selecting the tab and typing a custom name.

Can I unmerge a .xls file without Excel?

Yes, use LibreOffice Calc (free) or third-party tools like RepairExcel to attempt unmerging flattened sheets.

My unmerged file still has issues—what should I do?

If the file remains corrupted, it may be too damaged for Excel. Try a repair tool, check for XML corruption (text editor), or recreate the workbook from scratch using a backup.

Is there a way to unmerge without saving a new file?

No. Excel requires you to save the unmerged workbook as a fresh .xlsx file to preserve the restored structure.