Get the local build — $9
mergingmessy-input

Skipping the decoration above the header

Rows 1–2 of an export are usually a title and a date range. They are not data and must not be merged — but they are also how you detect where the header actually is.

Use them, then drop them

Score rows by "number of short text cells". The title row scores 1 (one merged cell), the subtitle scores 2, the header scores 6–12. Take the highest-scoring row in the first eight as the header, and drop everything above it.

Do not try to preserve the title in the output. It belongs to the source document, not to the consolidated table, and carrying it in creates rows whose amount is the word "Total".

Blank rows in the middle

An export that inserts a blank row between sections will stop a naive reader at the first blank. Skip blank rows and keep going; the row count in the report is how you notice that a file had sections.

Step by step

  1. Merge with detection on, then read the per-file header-row report.
  2. Open any file whose detected row differs from the majority.
  3. Set a fixed header row for that file if detection keeps getting it wrong.
  4. Confirm the output header contains real column names, not Unnamed.

What goes wrong

Multi-row headers

A two-row header (Q1 spanning Jan|Feb|Mar) has to be flattened into Q1 Jan, Q1 Feb before merging. Otherwise the second header row becomes data.

Footer totals

Same problem at the bottom: a Total row doubles your sums. Drop rows whose first cell is a total label.

Questions people actually ask

Can I keep the title as metadata?

Put it in the output's document properties or a separate sheet, not in the data range.

What if every file has a different number of title rows?

That is exactly why detection is per file rather than once per batch.

Do it now, in this browser

Drop the folder in, check the detected header, merge. Nothing is uploaded — the file is processed in the tab. Free for one-off merges; the unlimited local build is $9.