XLSX merge and split tutorial - header alignment, source column and pair splitting

Open Tool Sheet Merge

XLSX merge and split tutorial - header alignment, source column and pair splitting

This walkthrough follows the real order of work: what the tool is for, what each control does, a five step pass, and a self-check before you ship the export.

When to use

Monthly sales files and department submissions rarely share the same column order: one has an extra note column, another puts the amount last. This tool aligns by header name, leaves missing columns empty and keeps the extra ones, so nothing shifts by position.

Splitting is the reverse: a few thousand rows that must go to different owners. Pick a column, group by its values, and each group becomes its own xlsx inside one zip named after the value.

Merging three sheets of 1,000 rows takes about 0.09 s. Only the first 20 rows are rendered for preview and the full set is written at export, so tweaking options stays fast on big data.

Merge aligns by header and fills missing columns with blanks instead of dropping rows. Pair-column splitting expands only at export, so the preview keeps the original shape.

Steps

  1. On the merge tab drop the files; the first worksheet of each is read.
  2. Check headers and row counts in the preview, then export the merged workbook.
  3. On the split tab import one workbook and choose the column to split by.
  4. Review the group list and file names, then download the zip.
  5. File names use the group value with an index when duplicated.

Screenshots

These three shots come from the final build of this plugin.

The empty state: merge and split tabs on the left.

After loading the sample and merging, columns align by header and the source file column appears.

The preview pane: merged headers and row count, with the grouping note below.

Features in detail

Header-name alignment regardless of column order; columns present in only some files stay empty elsewhere.

Up to ten xlsx or csv files at once; blank rows are skipped.

Merge preview shows each file row count, detected headers and totals.

Split by any header column, with blanks grouped as Unclassified.

xlsx export with bold frozen header and numeric cells kept numeric; splits packaged as zip.

Runs locally; nothing is uploaded.

What you get

Inputs

  • Up to ten xlsx or csv files, each under 30 MB. Merge aligns by header names; split groups by the chosen column.
  • No need to match column order when merging.

Outputs

  • Merge: one xlsx with a bold frozen header.
  • Split: a zip containing one xlsx per group named after the value.

Parameters

The workspace exposes 8 controls, from 拆分列 to 预览行数, and every one of them only affects the local rendering: nothing is sent back to a server.

Ranges and defaults: 拆分列 (先导入文件), 组合列(可选) (不组合), 预览行数 (20 行 / 50 行 / 全部). Values outside the slider range are rejected rather than silently clamped.

ControlTypeRange or options
拆分列select先导入文件
组合列(可选)select不组合
文件名前缀text-
文件名前缀switch-
跳过空行switch-
去首尾空格switch-
合并时去重switch-
预览行数select20 行 / 50 行 / 全部

Typical cases

  • Combining twelve monthly files into a yearly sheet.
  • Aligning department submissions with different column orders.
  • Splitting a master sheet by region into thirty files.

In each of these cases the pass is the same: load the file, make one change, check the preview, export and reopen. Skipping the reopen step is why people later discover a transparent halo or a truncated table that looked fine on screen.

A worked pass

Step 1: On the merge tab drop the files; the first worksheet of each is read. Read the hint line before touching anything: it tells you which prerequisite is missing.

Step 2: Check headers and row counts in the preview, then export the merged workbook. Do not start with the most extreme setting; one small change is enough to see whether the result moves in the right direction.

Step 3: On the split tab import one workbook and choose the column to split by. Check the preview at 100% rather than the fitted view, because artefacts often hide in the downsampled version.

Step 4: Review the group list and file names, then download the zip. Export once, open the file in a local viewer, and only then decide the settings are final.

Step 5: File names use the group value with an index when duplicated. Keep the source file untouched so you can repeat the pass with a different setting without re-importing.

Walking through the controls

The 拆分列 dropdown offers 先导入文件. Switching it re-renders the preview immediately, so compare two neighbouring options rather than jumping across the whole list; the exported file follows the option that is selected at the moment you press export, not the one you looked at earlier.

The 组合列(可选) dropdown offers 不组合. Switching it re-renders the preview immediately, so compare two neighbouring options rather than jumping across the whole list; the exported file follows the option that is selected at the moment you press export, not the one you looked at earlier.

The 文件名前缀 field accepts free text. Paste a realistic value rather than a placeholder, because both the preview and the exported file depend on what you type here; an empty value usually means the tool falls back to a default derived from the file itself.

The 文件名前缀 switch is a binary choice. Turn it off first to record what the default output looks like, then turn it back on and export once so you can confirm the difference survives outside the preview. On a slow machine the redraw is scheduled rather than immediate, so wait for the status line to settle before judging the result.

The 跳过空行 switch is a binary choice. Turn it off first to record what the default output looks like, then turn it back on and export once so you can confirm the difference survives outside the preview. On a slow machine the redraw is scheduled rather than immediate, so wait for the status line to settle before judging the result.

The 去首尾空格 switch is a binary choice. Turn it off first to record what the default output looks like, then turn it back on and export once so you can confirm the difference survives outside the preview. On a slow machine the redraw is scheduled rather than immediate, so wait for the status line to settle before judging the result.

The 合并时去重 switch is a binary choice. Turn it off first to record what the default output looks like, then turn it back on and export once so you can confirm the difference survives outside the preview. On a slow machine the redraw is scheduled rather than immediate, so wait for the status line to settle before judging the result.

The 预览行数 dropdown offers 20 行 / 50 行 / 全部. Switching it re-renders the preview immediately, so compare two neighbouring options rather than jumping across the whole list; the exported file follows the option that is selected at the moment you press export, not the one you looked at earlier.

Practical notes

Keep the browser window above 1200 pixels wide while working: below that the right column collapses under the left one and you lose the side-by-side view.

Use the reset control between experiments; carrying state from a previous pass is the most common reason a setting appears to have no effect.

If a control looks unresponsive, check the hint line first: most no-op states are caused by a missing file rather than a broken button.

Export after every meaningful change rather than at the very end, so you still have a known-good file if the next experiment goes wrong.

On a laptop with a scaled display the preview is drawn at device pixel ratio, so text that looks crisp on screen stays crisp in the exported image at the same size.

Compare your result against the limits section: if you are working outside the documented range, the tool may still run but the output quality is not guaranteed.

Long sessions are fine because nothing is uploaded, but reload before switching to a different kind of file so cached state cannot leak into the new pass.

The controls you will touch most often here are 拆分列, 组合列(可选), 文件名前缀, 文件名前缀.

Self-check list

Run the workflow once with a real file and confirm the result pane shows content, not the empty state.

Push every slider to its minimum and maximum and confirm the readout follows without an error.

Switch each dropdown and confirm the preview and the export change together.

Export once and reopen the file with a local viewer to confirm it is not truncated.

Reset the workspace and confirm all panels return to the empty state.

Reload the page and confirm no previous result is restored by accident.

FAQ

Q: Why are some merged columns empty?

A: That column exists in only some files by design.

Q: Why fewer rows than expected?

A: Blank rows are skipped and only the first worksheet is read.

Q: A split file will not open

A: Check the group value for illegal filename characters, which are replaced automatically; report the group name if it persists.

Q: Will tens of thousands of rows crash it?

A: Up to 50,000 rows per sheet works. Beyond that browser memory gets tight; trim columns first or merge in batches.

Q: Does the file leave my device?

A: No. Everything runs inside the browser; requireNetwork is false and no upload happens.

Q: Which browsers does it run in?

A: Current Chrome, Edge, Firefox and Safari builds; no extension or plugin is needed.

Q: Why does the exported file differ in size from the source?

A: The export re-encodes the result, so size follows the chosen format and quality settings.

Limits

  • First worksheet only.
  • Colours, merged cells, comments and formulas are not preserved; values are static.
  • About 200k rows per merge and 200 split groups.

Version and compliance

This build is v1.0.0 on ToolCMS plugin spec 3.19, schemaVersion 2.1 and coreVersion 3.7.4. All processing happens inside the browser, requireNetwork is false and no file leaves the device.

⏫︎