Skip to main content
SheetTidy

Fix messy Excel files and shifted columns

Detects a misplaced header, merged cells, junk rows and rows pushed into the wrong columns, then fixes only what you approve.

  1. 1
  2. 2
  3. 3
  4. 4

Drop your Excel or CSV file here

XLSX, XLSM, XLS, ODS, CSV, TSV or JSON

Your file never leaves your device

How to use this tool

  1. Step 1: Open your file

    Drop the messy Excel or CSV file onto the tool. It is scanned for layout problems as soon as it opens.

  2. Step 2: Review the problems found

    Each problem is listed with a plain description. Confident fixes are ticked for you; anything uncertain is left unticked and marked "Check first".

  3. Step 3: Check the highlighted rows

    Rows that will be removed or moved are highlighted in the preview, so you can see exactly what each fix touches.

  4. Step 4: Apply and download

    Apply the ticked fixes, compare Before and After, and download the repaired file as Excel or CSV.

What “messy” usually means

A spreadsheet can contain correct data and still be unusable. Reports exported from accounting software, bank portals and PDF converters are laid out for printing, not for analysis. The typical problems are:

  • A title block above the header. “Sales by customer, 1–30 September” sits in rows 1 to 3, and the real column names start in row 4.
  • A header spread across two rows. A merged “Customer” label spans three columns, with “Code”, “Name” and “Email” underneath.
  • Merged cells in the data. A region name is merged down across ten rows, so only the first row actually holds it.
  • Junk rows. Subtotals after each group, a repeated header at the top of every printed page and “Page 2 of 5” lines.
  • Shifted rows. A PDF converter misread a line and pushed every value one column to the right, so an email address sits under “Name”.
  • Empty columns on the left, left over from page margins.

Each of these breaks sorting, filtering, pivot tables and formulas.

How to fix these problems manually in Excel

Title rows and two-row headers

Select the rows above the header, right-click and choose Delete. To combine a two-row header, enter =A1&" – "&A2 in a spare row, fill it across, convert it with Paste Special › Values, then delete the two original header rows.

Merged cells

  1. Select the merged area, then choose Home › Merge & Center › Unmerge Cells.
  2. Keep the range selected, press F5, click Special, choose Blanks and click OK.
  3. Type =, press the Up arrow once, then press Ctrl+Enter to fill every blank with the value above it.
  4. Copy the range and paste it back as values so the formulas are replaced.

Repeated headers, totals and page lines

Turn on a filter (Data › Filter), filter the first column for the header text, “Total” or “Page”, select the visible rows, delete them, then clear the filter. Do it once for each kind of junk row.

Shifted rows

Select the misplaced cells in one row, then choose Home › Delete › Delete Cells › Shift cells left to pull them back by one column, or Home › Insert › Insert Cells › Shift cells right to push a row the other way. Repeat for every shifted row, which you have to find by eye.

Power Query

Remove Top Rows, Use First Row as Headers, Fill Down and row filters can automate most of this for a report you receive every month. Setting it up takes time and does not handle shifted rows.

Where this tool helps

PDF statements and invoices converted to Excel. Converters repeat the header on every page, keep page numbers and regularly misplace a column on long lines.

Accounting and ERP reports. Ledger and sales reports add titles, group headers, merged labels and subtotals that must go before you can analyse the data.

Files from colleagues. Sheets formatted for printing with merged headings and totals between sections, now needed as a plain list for a pivot table or import.

How detection works

The tool first finds the header: the first row from the top where most columns hold short text labels and real data follows. Merged labels count for each column they cover, and a second label row directly beneath it, followed by data, is treated as part of a two-row header.

Below the header it looks for rows that repeat the header, rows labelled Total, Subtotal or Grand Total and “Page X of Y” lines. It then builds a profile of each column, such as mostly emails, mostly dates or mostly amounts, and checks every row against those profiles. A row whose values only fit when moved one or two columns sideways is offered for moving back, and the overflow column it spilled into is removed once it is empty.

Every finding has a confidence level. Clear-cut fixes are ticked for you; doubtful ones are marked “Check first” and left unticked. Nothing changes until you press Apply selected fixes, and the preview highlights each affected row before and after.

After the layout is fixed

A repaired report often reveals smaller problems: stray spaces copied from the PDF, blank rows between sections or duplicates where two pages overlapped. The next steps panel lists anything else it finds and links to the right tool.

Frequently asked questions

Will the tool change anything without asking?

No. It lists every problem it finds and applies only the fixes that are ticked. High-confidence fixes start ticked, low-confidence ones start unticked, and you can change any of them before running.

How does it know which rows are shifted?

It learns what each column normally holds, such as email addresses, dates, amounts or short text, then looks for rows whose values only fit when moved one or two columns left or right. Those rows are offered for moving back.

What happens to merged cells?

They are unmerged and the value is repeated in every cell of the merged range, so each row carries its own value and sorting or filtering works again.

My header spans two rows. Can it combine them?

Yes. When a group label such as "Customer" sits above column names such as "Code" and "Name", the two rows are combined into single headers such as "Customer – Code".

Are total and subtotal rows always removed?

Rows labelled Total, Subtotal or Grand Total that contain only numbers are offered for removal with high confidence. Rows that start with "Total" but also contain text are marked "Check first" and left unticked.

Can I keep a copy of the rows that were removed?

Yes. After applying the fixes, download the removed rows as their own file. Your original file is never changed.

Does it work on files converted from PDF?

Yes. PDF conversions are the most common source of repeated headers, "Page 1 of 3" lines and shifted rows, which are exactly the problems this tool detects.

All fix tools