Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Split Current Excel Workbook: 3 Ways

· 6 min read · Home Tech

In this article
  1. Formula
  2. Worked Example
  3. Why Split a Workbook?
  4. Method 1: Move or Copy Sheets
  5. Method 2: Split by Data Rows
  6. Method 3: VBA Macro for Bulk Splitting
  7. Common Mistakes and How to Avoid Them
  8. When to Split vs. Keep Together
  9. Frequently Asked Questions

To split the current Excel workbook into separate files, you can use the built-in Move or Copy feature, save individual sheets as new workbooks, or use a simple VBA macro. The method you choose depends on whether you need to split by sheets, by data ranges, or by specific criteria.

in t | Finish time | min | 50 | 0
in d | Distance | km | 10 | 0
out pace | Average pace | min/km | t / d | 2
out speed | Average speed | km/h | d / (t / 60) | 2

Formula

The formula for average pace is:

Pace = Total Time (minutes) / Distance (km)

Where:

  • Total Time (t) is the time taken to cover the distance, in minutes.
  • Distance (d) is the distance covered, in kilometers.

The average speed is the reciprocal of pace, converted to hours:

Speed = Distance (km) / (Total Time (min) / 60)

This gives speed in kilometers per hour (km/h).

Worked Example

Using the default values from the calculator: t = 50 minutes, d = 10 km.

  1. Pace = 50 min / 10 km = 5.00 min/km
  2. Speed = 10 km / (50 / 60) = 10 / 0.8333 = 12.00 km/h

The calculator returns a pace of 5.00 min/km and a speed of 12.00 km/h.

Why Split a Workbook?

Splitting a workbook is useful when you need to share only one sheet with a colleague, when a file has become too large to email, or when you want to archive data by month or department. It also helps avoid accidental changes to other sheets when collaborating. Many users split workbooks because Excel's file size limit or performance slows down with many sheets.

Method 1: Move or Copy Sheets

The simplest way to split a workbook into separate files is to copy or move individual sheets to a new workbook.

  1. Right-click the sheet tab at the bottom of Excel.
  2. Select Move or Copy.
  3. In the To book dropdown, choose (new book).
  4. Check Create a copy if you want to keep the original sheet in the current workbook.
  5. Click OK. Excel opens a new workbook with that sheet.
  6. Save the new workbook with a meaningful name.

Repeat for each sheet you want to split. This method is quick but manual—if you have dozens of sheets, it becomes tedious.

Method 2: Split by Data Rows

If you need to split a single large sheet into multiple files based on row ranges (e.g., every 1000 rows), you can use a combination of filters and copy-paste.

  1. Select the data range.
  2. Go to the Data tab and click Filter.
  3. Use the filter arrows to show only the rows you want in the first split (e.g., rows where a column equals "January").
  4. Select the visible rows, copy, and paste into a new workbook.
  5. Save the new file.
  6. Clear the filter and repeat for the next subset.

This works well for categorical splits, but it is manual. For automated splitting by row count, a VBA macro is better.

Method 3: VBA Macro for Bulk Splitting

When you need to split a workbook into many files quickly, VBA is the most efficient approach. Here is a simple macro that saves each sheet as a separate workbook in the same folder as the original file.

  1. Press Alt+F11 to open the VBA editor.
  2. Go to Insert > Module.
  3. Paste the following code:
Sub SplitSheets()
    Dim ws As Worksheet
    Dim wb As Workbook
    Dim path As String
    path = ThisWorkbook.Path & "\"
    Application.ScreenUpdating = False
    For Each ws In ThisWorkbook.Worksheets
        ws.Copy
        Set wb = ActiveWorkbook
        wb.SaveAs path & ws.Name & ".xlsx"
        wb.Close False
    Next ws
    Application.ScreenUpdating = True
End Sub
  1. Press F5 to run the macro.

Each sheet is saved as a separate .xlsx file. Be careful: the macro overwrites existing files with the same name. Always test on a copy of your workbook first.

Common Mistakes and How to Avoid Them

  • Losing formulas or formatting: When copying sheets, formulas that reference other sheets may break. Check for cross-sheet references before splitting.
  • Overwriting files: If you run the macro twice, it will overwrite the previous files. Add a timestamp to the filename if needed.
  • Forgetting to save as .xlsx: If your workbook contains macros, save as .xlsm to preserve them.
  • Not checking hidden sheets: The macro splits all visible and hidden sheets. If you have hidden sheets you don't want, modify the code to skip them.

When to Split vs. Keep Together

Splitting is not always the best choice. If you frequently need to see data from multiple sheets together, keeping them in one workbook is more convenient. Splitting is ideal when:

  • You need to share only part of the data.
  • The file is too large to email (over 25 MB for most email services).
  • You want to reduce the risk of accidental edits to other sheets.
  • You need to import a single sheet into another system.

If you only need to temporarily view a sheet separately, consider using View > New Window instead of splitting the file.

Frequently Asked Questions

Does splitting a workbook break formulas?

Yes, if a formula references a cell in another sheet that you are moving to a different file, the reference will be lost or show an error. Before splitting, check for cross-sheet references and either change them to static values or update them after splitting.

Can I split a workbook without losing formatting?

Yes, the Move or Copy feature preserves formatting, column widths, and row heights. The VBA macro also preserves formatting because it copies the entire sheet. However, any conditional formatting rules that reference other sheets may not carry over correctly.

How do I split a workbook into PDF files?

Excel does not have a direct "split to PDF" feature. You can save each sheet as a separate PDF by selecting File > Save As and choosing PDF, but you must do it per sheet. Alternatively, use the VBA macro above and modify it to export each sheet as a PDF using the ExportAsFixedFormat method.

Is there a way to split a workbook by a column value automatically?

Yes, you can use a more advanced VBA macro that loops through unique values in a column and copies rows matching each value to a new workbook. This is a common request, but it requires writing a custom macro. Search for "Excel VBA split data by column value" for ready-made code examples.

What if I only want to split the current sheet, not the whole workbook?

If you mean splitting the current sheet into multiple files based on rows, you can use the filter method or a VBA macro that operates only on the active sheet. The Move or Copy method always works on a whole sheet, so for partial splits you need to copy the relevant rows manually or with a macro.

Can I undo a split?

There is no direct undo for splitting because you are creating new files. However, you can combine the split files back into one workbook by using the Move or Copy feature again, or by using the Power Query append function if you have consistent columns.