Unmerging Excel workbooks means splitting a single workbook that contains multiple sheets (or a workbook that was combined from several files) back into separate .xlsx files. This is useful when a colleague merged several department reports into one master file and you need to send each team its own workbook, or when you inherited a combined file and want to restore the original separate files. You do not need any special software — Excel itself can do this with a few built-in features. The exact menu labels can differ slightly by Excel version (Microsoft 365, Excel 2021, 2019, or Mac), but the core steps are the same across Windows and Mac.
What You'll Need
- Microsoft Excel (desktop version for Windows or Mac). Excel for the web has limited file-export options, so use the desktop app if possible.
- The merged workbook file (.xlsx, .xlsm, or .xls) saved on your computer or accessible via OneDrive/SharePoint.
- Permission to create new files in the folder where you'll save the unmerged workbooks.
- Optional: a folder to keep the new files organized.
Step-by-Step
There are two main methods: one that copies each sheet into a new workbook manually, and one that uses a simple VBA macro to automate the process. Choose the manual method if you only have a few sheets; use the macro if you have many sheets or need to do this regularly.
Method 1: Manual Copy (Works in All Versions)
- Open the merged workbook in Excel. Make sure you have the file open and visible.
- Right-click any sheet tab at the bottom of the window. A context menu appears.
- Select "Move or Copy…" from that menu. A dialog box opens.
- In the "To book" dropdown, choose "(new book)". This tells Excel to create a new workbook for the sheet.
- Check the box "Create a copy" — this is critical. If you forget it, the sheet will be moved out of the original workbook instead of copied, which would break the original file.
- Click OK. A new workbook opens with just that one sheet.
- Save the new workbook with a meaningful name (e.g., "Sales_Q1.xlsx"). Use File > Save As and choose the folder where you want it.
- Repeat steps 2–7 for every sheet you want to separate. Each sheet becomes its own workbook.
- Close the original merged workbook without saving if you want to keep the original intact. If you accidentally moved a sheet (instead of copying), press Ctrl+Z (Windows) or Cmd+Z (Mac) to undo, then redo with the copy checkbox.
Method 2: VBA Macro (Faster for Many Sheets)
If you have dozens of sheets, the manual method is tedious. A simple VBA macro can split every sheet into a separate workbook automatically. This works on Windows and Mac, but you need to enable macros.
- Open the merged workbook.
- Press Alt+F11 (Windows) or Option+F11 (Mac) to open the VBA editor.
- In the menu, click Insert > Module. A blank code window appears.
- Paste the following code into that window:
Sub SplitSheets() Dim ws As Worksheet Dim newWb As Workbook Dim folderPath As String folderPath = ThisWorkbook.Path & "\" Application.ScreenUpdating = False For Each ws In ThisWorkbook.Worksheets Set newWb = Workbooks.Add ws.Copy Before:=newWb.Sheets(1) newWb.SaveAs folderPath & ws.Name & ".xlsx" newWb.Close False Next ws Application.ScreenUpdating = True MsgBox "Done! Files saved in " & folderPath End Sub - Press F5 (or click Run) to execute the macro. A message box will show where the files were saved.
- Check the folder where the original workbook is located — you'll see one new .xlsx file per sheet, named after each sheet.
- Close the VBA editor and the original workbook. The original is untouched.
Note: The macro saves files in the same folder as the original workbook. If you want a different folder, change the folderPath line to a full path like "C:\Users\YourName\Desktop\SplitFiles\" (include the backslash at the end).
Common Mistakes
- Forgetting to check "Create a copy" — this moves the sheet out of the original, leaving the original with fewer sheets. Always check that box.
- Overwriting the original file — when saving the new workbook, make sure you don't accidentally save over the original. Use Save As and give a new name.
- Not saving the new workbooks — if you close them without saving, you lose all your work.
- Using the macro without enabling macros — Excel may block the macro for security. When you open the file, you'll see a yellow bar; click "Enable Content" to allow the macro to run.
- Macro errors due to invalid characters — if a sheet name contains characters like / \ : * ? " < > |, the SaveAs will fail because those are illegal in filenames. Rename the sheet first or modify the macro to strip them.
Tips
- Before starting, save a backup copy of the merged workbook. Even with the copy checkbox, mistakes happen.
- If you only need a few sheets, use the manual method — it's simpler and doesn't require enabling macros.
- Use a dedicated folder for the split files to avoid clutter.
- If your workbook has formulas that reference other sheets, those references will break in the split files. You'll need to update them manually or use a different approach (like Power Query) if cross-sheet references are essential.
- For a one-off split, the manual method is fine. For recurring splits, save the macro in your Personal Macro Workbook so it's always available.
Troubleshooting
The "Move or Copy" option is grayed out? This happens if the workbook is protected or shared. Go to Review > Protect Workbook and unprotect it, or check if "Share Workbook" is enabled (Review > Share Workbook, then uncheck it).
The macro runs but no files appear? Check the folder path. If the original workbook is unsaved (never saved to disk), ThisWorkbook.Path returns an empty string, and the macro saves to the current default folder (often Documents). Save the original workbook first, then run the macro.
Files are saved but with wrong names? The macro uses sheet names as filenames. If a sheet name is too long (over 31 characters) or contains invalid characters, the SaveAs fails. Rename the sheet or modify the macro to clean the name.
Excel says "Cannot use this command on multiple selections"? This appears if you selected multiple sheets before using Move or Copy. Click on a single sheet tab to deselect the group, then try again.
The split files open with a blank extra sheet? The macro copies the sheet into a new workbook that already contains a default sheet (Sheet1). The code copies before that sheet, so the new workbook has two sheets — the copied one and the blank one. To remove the blank sheet, add this line before SaveAs: Application.DisplayAlerts = False: newWb.Sheets(newWb.Sheets.Count).Delete: Application.DisplayAlerts = True.
Macro disabled due to security settings? You can change the macro security level temporarily (File > Options > Trust Center > Trust Center Settings > Macro Settings > Enable all macros), but be aware this is a security risk. Better to keep macros disabled and manually approve the file each time.
Frequently Asked Questions
Can I unmerge workbooks without losing formulas?
Yes, formulas are preserved, but any formula that references another sheet will show a #REF! error in the new workbook because the referenced sheet is no longer there. You'll need to update those formulas manually or use a different method if cross-sheet references are critical.
Does this work on Excel for Mac?
Yes, both methods work on Mac. The keyboard shortcuts differ (Option+F11 for VBA), and the menu labels are essentially the same. The macro code works on Mac with minor changes (the folder path separator is "/" instead of "\", but the code above uses a backslash which works on Mac too).
What if I only want to split out one sheet, not all?
Use the manual method for that single sheet. The macro splits all sheets; if you want only one, just copy that sheet manually.
Can I unmerge a workbook that was combined using "Consolidate"?
If the data was consolidated into a single sheet, you cannot unmerge it — the original separate files are gone. You'd need to re-import the original data. The methods above only work when each source file became a separate sheet.
Will the split files be smaller?
Usually yes, because each file contains only one sheet. However, if that sheet has heavy formatting or images, the file size may still be large.
Is there a way to unmerge without VBA?
Yes, the manual method works without VBA. For a one-time split of a few sheets, that's the simplest. For many sheets, VBA saves time but is optional.