# Merge Spreadsheets From Several Colleagues With AI

Source: https://gravam.com/blog/merge-spreadsheets-with-ai
Author: Tan Gravam
Published: 2026-11-25
Reviewed: 2026-11-25
Summary: Copy-pasting five colleagues' versions of one sheet into one is busywork. AI maps the columns first; then the merge is one paste or one Excel step.

**Five colleagues send their version of the same sheet, and none of them has the columns in the same order.** One says "CC", another "Cost centre"; one added a comment column. Copy-pasting them into one is the busywork. **This one is a process, not a single request: AI maps the columns first, then the merge is one paste or one Excel step, and a count proves it.**

## The task, by hand

You open file one, copy, paste, open file two, notice the columns are in another order, rearrange, paste. By file four you are not sure whether "Amount" in this one includes VAT.

## The demo

The header rows of three illustrative files:

```text
File A: Name | Cost centre | Amount | Date
File B: Date | Employee | CC | Amount (EUR)
File C: Employee name | Amount | Cost center | Date | Comment
```

Step 1, the request:

```text
Here are the header rows of three files that should hold the same data.
Make a table that maps each file's columns to one standard set of
columns. Flag any column that appears in only some files, and any pair
that might not mean the same thing.
```

What came back:

```text
Standard      File A        File B         File C
Employee      Name          Employee       Employee name
Cost centre   Cost centre   CC             Cost center
Amount        Amount        Amount (EUR)   Amount
Date          Date          Date           Date
Comment       -             -              Comment

Only in some files: Comment (File C).
Check: "Amount (EUR)" in File B names a currency; Files A and C don't.
Confirm they are all EUR and all include (or all exclude) VAT.
```

That last line is the question you would otherwise discover in the totals.

## The steps to copy

1. Paste the header row of every file into the assistant your company allows, with the request above.
2. Answer its questions, such as currency and VAT.
3. Rename the headers in each file to the standard set, and add any missing column (here, Comment) empty. Now every file has the same columns.
4. Merge. For small files, paste the data into the assistant and ask for one table with a Source column naming the file. For larger ones, put the files in one folder and use Excel's Data, Get Data, From File, From Folder; ask the assistant to walk you through it for your version of Excel.
5. Count: the merged rows should equal all the files' rows together, and each amount total should match.

## Before you trust it

- **Same name, different meaning.** Amount with VAT and amount without VAT merge without complaint and add up to nonsense.
- **Dates in different formats.** 03-12 from one colleague and 12/03 from another are the same day or not. [Clean the list](https://gravam.com/blog/clean-messy-list-with-ai) first.
- **Rows counted twice.** If two colleagues both included a shared row, it is in the merge twice. The Source column shows where.
- **Pasting large files.** Past a few dozen rows, let Excel do the merge and use the assistant for the steps.
- **Personal data.** Employee names and amounts belong in the assistant your company approves.

Once there is one sheet, the next question is usually what changed since last month: [compare the two lists](https://gravam.com/blog/compare-two-lists-with-ai).

## Questions this article answers

**Q: How do I merge several spreadsheets with different columns?**

First map the columns: paste each file's header row into an AI assistant and ask for a table that maps every file's columns to one standard set, flagging columns that only some files have. Rename the headers to the standard. Then merge: paste small files into the assistant with a Source column, or let Excel combine them (Data, Get Data, From File, From Folder) once the headers match.

**Q: How do I check that a merge didn't lose rows?**

Count. The merged sheet should have as many rows as all the files together, and the total of each amount column should equal the sum of the files' totals. A Source column that names the file each row came from makes any difference easy to trace.
