Combine Excel tables based on common headers

The Combine Worksheets wizard joins multiple spreadsheets into a single large table and places records according to their headers. It doesn't matter whether the tables structured identically or differently. You can pick out the columns you want to merge if needed, so that unnecessary data are not copied to a new file.
Merge data from columns with the same name even if their order is not identical.

Video: How to combine Excel sheets without copying and pasting

Before you start

Since the add-in processes table columns, all sheets you want to join must have headers.

If there are filtered, grouped, or hidden cells in your tables, they will be ignored.

How to use the Combine Sheets wizard

Start Combine Sheets

To run the add-in, click the Combine Sheets icon on the Ablebits Data tab in the Merge group:
Combine Sheets icon on the Excel's ribbon.

Step 1: Select worksheets and ranges to join

Here you can see all the files that are currently open in Excel. You can pick out the worksheets you would like to join by ticking off the checkboxes next to their names:
Choose worksheets and ranges to combine.

Tip. If you have a long list of spreadsheets, take advantage of the checkbox next to the Worksheets column at the top of the list. It lets you instantly select and deselect all items.

The add-in automatically pulls all data from the chosen worksheets. To change the highlighted area, select the sheet name in the list and click on the Select range icon under the Ranges column. It will open this sheet, and you will see a dialog box that allows you to pick the necessary cells:
A dialogue window for you to pick the needed data range.

The buttons at the bottom of the wizard's window will also help you deal with a big number of files:

  • Collapse all / Expand all - quickly hide or show all sheets in each workbook.
  • Exclude - remove the selected workbooks from the add-in window.
  • Add files... - include the files that are not open in Excel.
Note. If you want to combine data from all columns, untick Select columns on the next step to skip it.

Click Next to go to Step 2.

Step 2: Choose the columns to merge

The columns you choose on this step will be joined together based on their headers and placed to a new location.

Note. You will not get this window if you unticked the checkbox Select columns on the next step earlier.

Select the columns to combine.

Here you can see a list of column headers from all the selected worksheets and the total number of times a given label occurs in the tables. E.g. if you choose 5 files and each has a column named "Fruit", you will see 5 in the Number of occurrences field for this column.

To exclude some records from the results, unselect the column in the list.

If you want to combine data from all columns, keep all the checkboxes ticked off.

Tip. Select or deselect all columns at once by checking the box next to the Columns header.

Click Next to continue.

Or click Back to return to a previous step and delete, add, or pick out other worksheets.

Step 3: Specify how to paste records

This step lets you define the way to copy and paste records to the merged columns:
Select additional options to combine your data.

Define pasting options

  • Paste all. If the copied ranges contain formulas, they will be pasted along with the values.
  • Paste values only. This option will replace formulas with their calculated values in the resulting table.
  • Create links to source data. Select this radio button if you want the results to update automatically when the data in the source table changes.

Adjust resulting formatting

  • Preserve formatting. Tick off this checkbox to apply the original cell format and the styles of the copied ranges to the result.
  • Separate the copied ranges by a blank row. See the borderline between the pasted ranges by adding an empty row between them.

Press Next to proceed to Step 4.

Step 4: Decide where to place the result

Select the destination for the combined data from one of the following options:
Select the destination for the combined data.

  • Pick New workbook to create a new Excel file with the result.
  • Select New worksheet to add a resulting sheet to the current open workbook.
  • Or choose a position on one of the existing sheets manually by picking Custom location. One click on the Select range icon will open a dialogue window so you could choose the top left cell for the result.

Click Combine and get the data from the same columns merged into one Excel table.

Responses

Kevin Shiflett says:
February 3, 2019 at 2:00 am

I have a large amount of worksheets to combine. When I use the software it prematurely opens the combined results, which only contains about half of the sheets.

Reply

Hi Kevin,
Thank you for your comment.
The problem may be in Excel limitations.
The questions are: how many books you are trying to combine? And how many rows and columns does each book have? And where do you pick to place the results: to a new worksheet or to a new book?
Our products do not impose any additional limitations, so the number of rows and columns in the resulting table is defined by the version of Excel you have, please find them here.
If this is not the case, please contact us at support@ablebits.com and we will help you asap.

Reply

Hi there! This is going to save me so much work. Thank you.
Is there a way to preserve formatting of the destination sheet like borders and fixed columns?

Many thanks

ps referring to the "Combine sheets"

Reply

Hi Diana!
Thank you so much for your kind feedback, we appreciate it a lot.
Unfortunately, the add-in does not preserve formatting. The thing is that this feature would significantly slow down the combing process, so we’ve chosen speed instead of formatting. However, we are trying to find a way to implement it without losses in the add-in’s performance. So we are working on it 🙂

Thank you.

Reply

Ask a question (posted publicly)

If you have any questions or issues with this add-in, please feel free to post your concerns in the comments area. As soon as we answer, a notification message will be sent to your e-mail. If you do not want to share your thoughts in public, please contact us at support@ablebits.com.
Privacy policy Terms of use Contact us

Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.