How to batch split an Excel spreadsheet into multiple worksheets by row? Tutorial on automatically splitting multiple files into sheets


Translation:EnglishFrançaisDeutschEspañol日本語한국어
Update Time:2026-11-22 06:26:47
Content note: This article reflects the software version available when it was published. Interfaces and features may change with updates; please refer to the current software. If you find an error, please let us know.
Software featured in this articleHeSoft Doc Batch Tool
Free DownloadSoftware IntroductionUser Guide

When a large amount of detailed data is stored across multiple Excel workbooks and needs to be split into multiple sheets by a fixed number of rows, copying, pasting, and creating worksheets one by one is not only time-consuming, but also prone to omitting headers or disrupting the data. This article explains how to use HeSoft Doc Batch Tool to import multiple xlsx files at once, choose the split-by-row-count method, set the worksheets to be processed, the number of data rows per worksheet, and the header row position, and then complete saving and processing in a unified manner to batch-split long tables into multiple clearly structured worksheets.

When organizing sales details, questionnaires, product catalogs, customer information, or business ledgers on a daily basis, you often encounter this situation: an Excel worksheet contains hundreds or even tens of thousands of rows of data, and later printing, review, grouped viewing, or batch delivery requires splitting this long sheet into multiple worksheets. If you only need to process one file, manually creating new sheets and copying data may still be feasible; but if there are dozens of xlsx workbooks with the same structure in a folder, repeated operations will consume a lot of time and can easily cause problems such as copying one row too few, failing to keep the title row, or messing up the worksheet order.

For such tasks, you can use the batch processing feature in office software. The following uses HeSoft Doc Batch Tool as an example to introduce how to batch import Excel files and split the long sheet in each workbook into multiple worksheets according to a specified number of rows. The entire process does not require opening files one by one or repeatedly copying and pasting, making it suitable for processing batch Excel tables with a consistent structure and consistent splitting rules.

1. Applicable scenarios: which Excel tables are suitable for batch worksheet splitting

"Splitting Excel into multiple worksheets" usually means keeping the original workbook format and dividing a sheet with a large amount of data into several smaller sheets. The split content is still centrally stored in the same Excel workbook, distinguished only by multiple worksheet tabs.

This processing method is mainly suitable for the following scenarios:

  • Viewing large batches of survey data in segments: a questionnaire summary table contains a large number of survey records, and you want to create one worksheet for every 20, 50, or 100 records.
  • Reviewing business details in batches: financial transaction records, purchase lists, inventory details, or sales orders need to be handed over to different personnel for verification according to a fixed amount of data.
  • Printing long tables by pages: the original Excel table has many rows and needs to be split into multiple sheets first, and then print areas or output can be set separately.
  • Applying the same splitting rule to multiple workbooks: there are multiple xlsx files with the same structure in a folder, and you want to import them all at once and split them uniformly by row count.
  • Organizing by field content categories: if the data contains fields such as department, region, project, or product category, you can also organize it using the "split by column content" method provided in the interface.

It should be noted that this article focuses on demonstrating splitting Excel worksheets by row count. It does not split one workbook into multiple independent files, but instead divides one long worksheet into multiple sheets within the same workbook. If the goal is to output multiple independent Excel files, you should select the corresponding "split Excel into multiple files" feature in the software, rather than the feature used in this article.

2. Preview of results: differences before and after splitting

1. Before processing: all data is concentrated in one worksheet

Before processing, the Excel file has only one main worksheet, and the worksheet name shown in the screenshot is "All_surveys". Row 1 of the table contains the field titles, including columns such as Coicop code, Coicop name, Item Name, Reference Quantity, and Reference Unit, followed by a large number of continuous data records below.

image-Excel batch split worksheets,Excel split by row count,xlsx split multiple Sheets,batch split Excel files,Excel worksheet splitting

When all data is concentrated in one long table, viewing the complete content requires continuous scrolling. If you need to divide the records into several batches, manual processing usually requires repeatedly selecting data, copying, creating new worksheets, pasting, and modifying sheet names. The more files there are, the more obvious the repetitive work becomes.

2. After processing: the long table is divided into multiple sheets

After batch splitting is completed, the original long worksheet is divided into multiple worksheets. At the bottom of the screenshot, you can see tabs such as "All_surveys_1", "All_surveys_2", "All_surveys_3", and "All_surveys_4", indicating that the data has been written sequentially into multiple sheets according to the configured number of rows.

image-Excel batch split worksheets,Excel split by row count,xlsx split multiple Sheets,batch split Excel files,Excel worksheet splitting

In the example, each worksheet is set to contain a maximum of 20 rows of data, so the first split result retains the title row and places the corresponding number of data records below it. Subsequent data continues into the next worksheet until all content in the original table has been processed. This preserves the overall structure of the Excel workbook while making each batch of data easier to browse, verify, and use later.

3. Preparation before operation: check the Excel source files first

To reduce rework after splitting, it is recommended to briefly check the source files before starting batch processing:

  1. Confirm which worksheet contains the data to be split, whether it is the first worksheet in each file or a specified worksheet with the same name.
  2. Confirm the row where the title is located. For example, in the screenshot the field titles are in row 1, so "title row number" should be filled in as 1.
  3. Confirm whether the table structure of each file is consistent. If you plan to apply the same rule to multiple files, it is best to keep the title row and target worksheet position uniform.
  4. Close any programs that are currently using these Excel files to avoid affecting processing when saving due to file locking.
  5. For important business files, it is recommended to keep a backup in advance and save the output results to a separate directory for easier comparison with the source files.

This demonstration imports multiple xlsx files. For other Excel formats, such as xls, whether they can be processed directly should be determined by the software's actual import results and the support status of the current version.

4. Operation steps: batch split Excel into multiple worksheets

Step 1: Enter the "Split Excel into multiple worksheets" feature

Open HeSoft Doc Batch Tool , select "Excel Tools" in the left function bar, and then enter the "Merge & Split" category at the top. In the function list, find and click "Split Excel into multiple worksheets".

image-Excel batch split worksheets,Excel split by row count,xlsx split multiple Sheets,batch split Excel files,Excel worksheet splitting

The description on the feature card shows that data can be split into multiple worksheets in the same file by row count or by specified column categories. This is consistent with the task to be completed in this article. After entering, the software will guide the operation in the order of "select the records to process - set processing options - set save location - start processing".

Step 2: Batch add the Excel files to be split

After entering the processing page, first add the source files. When there are only a few files, you can click "Add Files" to select them one by one; if the xlsx files to be processed are centrally stored in the same directory, you can use "Import files from folder" to reduce repeated selection operations.

image-Excel batch split worksheets,Excel split by row count,xlsx split multiple Sheets,batch split Excel files,Excel worksheet splitting

In the screenshot, 1.xlsx, 2.xlsx, 3.xlsx, 4.xlsx, and 5.xlsx have been imported, for a total of 5 records. The list displays the file name, path, extension, creation time, and modification time, making it convenient to check the files before formal processing. If a file is added by mistake, you can remove it using the delete operation on the right side of that row; if you need to reselect the entire batch of files, you can use "Clear" at the top of the page.

After confirming that the file list is correct, click "Next". The value of batch adding files is that subsequent splitting parameters only need to be set once, and the software can then apply the same rules to multiple Excel workbooks in the list without opening and processing them one by one.

Step 3: Choose splitting by row count or by column content categories

After entering the "Set processing options" page, first set the splitting method. The interface provides two options:

  • Split by row count: split sequentially according to a fixed number of data rows, suitable for cases where each sheet needs to contain the same or similar number of records.
  • Split by column content categories: classify according to the content in a certain column, suitable for splitting by fields such as region, department, or category.

image-Excel batch split worksheets,Excel split by row count,xlsx split multiple Sheets,batch split Excel files,Excel worksheet splitting

In this example, select "Split by row count". In this way, the software will read the source worksheet from top to bottom according to the configured maximum number of data rows and generate multiple new worksheets.

Step 4: Set the worksheet to be processed

In the "Worksheet to process" area, you can select "First worksheet" or "Worksheet with specified name".

If the table to be split in each Excel file is located in the first sheet, you can directly select "First worksheet", which is simpler. If the workbook contains instruction pages, cover pages, or summary pages before the actual data table, and the data table has a uniform name, you should select "Worksheet with specified name" and specify the target name according to the interface prompts.

The example in the screenshot selects "First worksheet", corresponding to the "All_surveys" worksheet shown in the file before processing. When batch processing multiple files, pay special attention to confirming that the worksheet order in each file is consistent, otherwise the same setting may select different content.

Step 5: Fill in the maximum number of data rows each worksheet can contain

Enter the required value in the input box for "Maximum number of data rows in each worksheet after splitting". In the screenshot, 20 is entered, meaning each new worksheet can contain up to 20 rows of body data.

The number of data rows here usually does not include the title row that needs to be kept repeatedly. For example, when the title is in row 1, each sheet after splitting can display one title row and then arrange the corresponding data records below it. From the processed screenshot, you can see that the top of the first result worksheet retains the field names, followed by the split data content below.

The specific value should be set according to the purpose: for manual review, it can be set to 20 or 50 rows; for batch import into other systems, it should be determined according to the number of records allowed by the target system; when the data scale is large and you only want to reduce the length of each table, it can be set to several hundred rows. The smaller the value, the more worksheets are usually generated.

Step 6: Confirm the title row number

In "Title row number (the row closest to the data body)", enter the location of the header row. In the example file, the field names are in row 1, so enter 1.

If the top of the Excel file contains a report name, date description, or blank rows, and the actual column titles are in row 3, then enter 3. The emphasis here on "the row closest to the data body" is to allow the software to accurately identify the row that should be retained as the field title. Before filling it in, it is best to open the source file and check to avoid mistaking explanatory text for the title.

Step 7: Set the save location and start processing

After completing the parameter settings, click "Next" to enter the "Set save location" stage. It is recommended to choose an output location different from the source file directory to distinguish the pre-processing files from the split results. After confirming the save location, continue to the "Start processing" stage and execute the task.

Since this is a batch file operation, after processing is complete, open the output directory and spot-check at least one result workbook: check whether multiple sheets have been generated, whether the number of data rows in each worksheet meets the settings, whether the title has been retained, and whether the last worksheet contains the remaining records. After confirming that the results meet expectations, the files can then be used for review, printing, archiving, or delivery.

5. How to choose the appropriate splitting method

Splitting by row count and splitting by column content categories solve two different types of problems, and the choice can be made according to the final purpose.

If the requirement is "put every 20 records into one sheet", "divide ten thousand rows of data into even segments", or "review in batches by a fixed quantity", choose splitting by row count. If the requirement is "put different departments in different worksheets", "generate multiple sheets by region", or "group similar products together", splitting by column content categories is more suitable.

Do not choose a method solely based on the number of generated worksheets. Splitting by row count focuses on controlling the data scale of each table; splitting by column content categories focuses on keeping similar records together. Clarifying this can prevent finding that the results do not match business logic after processing is complete.

6. Common questions and precautions

1. Why are there so many worksheets after splitting?

The number generated is related to the total number of rows in the source data and the maximum number of data rows allowed in each worksheet. The smaller the configured value, the more sheets are generated. For example, for the same long table, splitting by 20 rows will produce more worksheets than splitting by 100 rows. Before processing, you can estimate the approximate quantity by dividing the total data volume by the number of rows per portion.

2. What number should be entered for the title row?

You should enter the row number where the field title closest to the data body is located, not the first row where text appears in the worksheet. If row 1 is a report name, row 2 is a date, and row 3 contains field names such as "Name, Department, Amount", then the title row number should be set to 3.

3. Can multiple files be processed at once?

Yes. As can be seen from the screenshot, 5 xlsx files were added to the file list at one time. As long as these workbooks are suitable for the same set of splitting parameters, they can be imported together and batch processed. This is also the main efficiency advantage of office batch processing software compared with manual operation.

4. Are the split results multiple files or multiple worksheets?

The feature used in this article generates multiple worksheets inside the Excel workbook, that is, multiple sheets, rather than saving each segment of data as an independent file. If you need to output multiple Excel files, return to the function list and select the splitting feature whose name and goal match your needs.

5. Why set a separate output directory?

Batch tasks involve multiple source files, and setting a separate save location makes it easier to check the results and reduces the risk of confusing original files with processed files. For important reports, it is recommended to always keep a backup of the source files and not delete the original data before checking the results.

6. What else should be checked before batch processing?

It is recommended to check blank rows, merged cells, title positions, and the worksheet order of each file. If the structures of multiple files differ significantly, they should first be grouped by structure and then processed separately with different parameters. This is more reliable than forcibly applying the same rule to all files.

7. Summary

The core of batch splitting long Excel tables into multiple worksheets is to first clarify the splitting rule and then apply it to multiple files at once. When using HeSoft Doc Batch Tool , you only need to enter "Excel Tools - Merge & Split - Split Excel into multiple worksheets", batch add xlsx files, select splitting by row count, set the target worksheet, the number of data rows per sheet, and the title row number, then specify the save location and start processing.

Compared with creating worksheets one by one, copying data, and modifying sheet names, batch processing can significantly reduce mechanical operations and also helps maintain consistent splitting standards across multiple Excel files. If you have a batch of workbooks with the same structure that need to be organized in segments, it is recommended to first copy a small number of files for testing, confirm that the title and row count settings are correct, and then import the complete file list to execute batch splitting.

Keyword:Excel batch split worksheets , Excel split by row count , xlsx split multiple Sheets , batch split Excel files , Excel worksheet splitting
Creation Time:2026-11-22 06:26:31
Software featured in this articleHeSoft Doc Batch Tool
Free DownloadSoftware IntroductionUser Guide
Content note: This article reflects the software version available when it was published. Interfaces and features may change with updates; please refer to the current software. If you find an error, please let us know.