Combine Multiple Tables In Excel


Does merging rows and columns in Excel seems a tough task for you to perform? Read this tutorial to learn different ways to merge rows and columns in Excel.

Now there are two tables in the panel, right-click on Table A and select Append. The Append window pops up and allows you to choose between appending two tables, or three or more. These data sets could be on separate worksheets, but for ease of demonstration, I.

Microsoft Excel is a very useful application and can be used for performing various tasks. This is the reason Excel provides various useful functions to make the task easy for the users.

One of the most common tasks that everyone needs performing now and then is merging rows and columns.

But the problem is that performing this is not an easy task and Excel does not provide any tool to do this.

This is quite complicated as merging rows and columns in some cases causes data loss.

As while trying to combine two or more rows in the worksheet by making use of the Merge & Center button (Home tab > Alignment group), you will start getting the error message:

“The selection contains multiple data values. Merging into one cell will keep the upper-left most data only.”

Combine Multiple Tables In Excel 2010

And if you click OK, merged cells would contain just the value of the top-left cell and as a result, entire other data will be removed.

So this is what leads you to Panic situation!!!

To get rid of this, today in this article I am sharing different ways to easily merge rows and columns in excel without losing any data.

Combine 2 Pivot Tables In Excel

Below check out the fixes on how to merge rows in Excel or how to merge columns in Excel.

To recover Excel data without any data loss, we recommend this tool:

This software will prevent Excel workbook data such as BI data, financial reports & other analytical information from corruption and data loss. With this software you can rebuild corrupt Excel files and restore every single visual representation & dataset to its original, intact state in 3 easy steps:

Merging Multiple Tables In Excel

  1. Download Excel File Repair Tool rated Excellent by Softpedia, Softonic & CNET.
  2. Select the corrupt Excel file (XLS, XLSX) & click Repair to initiate the repair process.
  3. Preview the repaired files and click Save File to save the files at desired location.

How To Merge Rows & Columns In Excel Without Losing Data?

There are different methods for combining row and columns text in Excel. Here check the ways one by one to merge data without losing it. First, check how to merge rows in Excel.

Part 1# How To Merge Rows in Excel

When it comes to merging the Excel rows there are two ways that allow you to merge rows data easily.

Combine Multiple Tables In Excel
  1. Merge Excel rows using a formula
  2. Combine multiple rows using the Merge Cells add-in

1. How to Merge Multiple Rows using Excel Formulas

Excel provides various formulas that help you combine data from different rows. Possibly the easiest one is the CONCATENATE function. So here checks out some examples for concatenating numerous rows into one:

  • Merge rows with spaces between data: For example =CONCATENATE(B1,” “,B2,” “,B3)
  • Combine rows without any space between the values: For example =CONCATENATE(A1,A2,A3)
  • Merge rows > separate the values with comma: For Example =CONCATENATE(A1,”, “,A2,”, “,A3)

Now check how the CONCATENATE formula works on the real data.

  • On the sheet choose an empty cell and type the formula into it. Type the formula as per the data rows
  • And copy the formula across entire other cells in the row.
  • Now, simply you are having several data rows merged into one row.

2. How to Combine Rows in Excel using the Merge Cells Add-in

The Merge Cells add-in is used for merging various types of cells in Excel. This allows you to merges the individual cells and also combines data from entire rows or columns.

Please Note: You need to download a merge cell add-ins for third-party sites available online. Search in Google for add-ins.

Follow the given steps to combine two or more rows in your table:

  1. Choose rows you are looking to merge > click on the Merge Cells icon.
  2. Now the merge cells dialog window opens with a table or range selected already. And in the upper part of the window, you can see the three basic things:
    • How you want to join cells– For combining rows of data > choose “column by column“.
    • How to separate merged values with – an array of standard separators is available to choose from > comma, space, semicolon, anda line break. So select the separator as per your desire.
    • Where you need to place the merged cells > either the top cell or bottom cell.
  1. Now check the lower part of the Windows to check if you need any additional options:
    • Clear the content of selected cells – Choose this if need data to remain in the merged cells only.
    • Merge all areas in the selectionThis option allows you to merge rows in two or more non-adjacent ranges.
    • Skip empty cells and Wrap text – Well, these are self-explanatory.
    • Lastly, Create a backup copy of the worksheetThis option is checked by default. It is just a precaution that keeps you on the safe side and prevents the risk of data loss.
  1. Click the Merge button > to check the result – possible the merged rows of data separated by line breaks.

So, these are the two ways that allow you to merge rows in Excel without any data loss. Now, check out the ways on how to combine two columns in Excel.

Part 2# How To Merge Columns In Excel

Here check out the 3 ways to merge data from several columns into one without using VBA macro.

  • Merge two columns using formulas
  • Combine columns data via NotePad
  • The fastest way to join multiple columns

1. Merge Two Columns using Excel Formulas

1. Into your table > insert a new column > in the column header place the mouse pointer > right-click the mouse > select Insert from the context menu. Name the newly added columns for eg. – “Full Name”

2. In the cell D2, write the formula: =CONCATENATE(B2,” “,C2). The B2 and C2 are the addresses of First Name and Last Name. And in the formula, the quotation marks “” is the separator that will be inserted between merged names any other symbol can be used as a separator e.g. a comma.

3. Just like this, join data from several cells into one by making use of any separator of your choice.

4. Simply, copy the formula to other cells of the Full Name column. If the First name or the Last name is deleted, then the corresponding data in the Full name Column will also be gone.

5. Next, try converting the formula to a value so that you can remove the unnecessary columns from the Excel worksheet. Choose entire cells with data in the merged column (choose the first cell in “Full Name” Column > press Ctrl +Shift + Arrow Down)

6. Now copy the contents of the columns to clipboard > right click on the cell in the same column (“Full Name”) > choose “Paste Special” context menu > choose “Values” radio button > click OK.

7. Now remove “First Name” & “Last Name” columns that are not required. Click the column B header > press and hold Ctrl > click column C header.

8. After that make a right-click on any selected columns > select Delete from the context menu.

9. This is it, now you have successfully merged the names from 2 columns into one.

2. Combine columns Data via Notepad

This is another way that allows you to merge several columns. Here you don’t need any formulas. This is suitable for combining adjacent columns to make use of the same delimiter for all of them.

For Example: If looking for combining 2 columns with First Names and Last Names into one:

  1. Choose both columns you need to merge: Click B1 > press Shift + ArrrowRight for choosing C1 > then hit Ctrl + Shift + ArrowDown for choosing entire data cells with data in two columns.
  • And copy data to clipboard > open Notepad > insert data from the clipboard to the Notepad
  • Then copy tab character to clipboard > hit Tab right in Notepad > hit Ctrl + Shift + LeftArrow > press Ctrl + X.
  • After that Replace Tab characters in Notepad with the separator, you require.
  • Hit Ctrl + H for opening the “Replace” dialog box > paste the Tab character from the clipboard in Find what field > type the separator Space, comma etc in “Replace with” field. Hit the Replace All button > to close the dialog box press Cancel
  • Now select the entire text in the Notepad and copy it to Clipboard.
  • Then switch back to Excel worksheet (press Alt + Tab) > choose B1 cell and paste text from Clipboard to your table.
  • And rename column B to Full Name and remove the “Last name” column.

So, this is the second way that allows you to merge columns in Excel without any data loss.

3. Join Columns Using Merge Cells Add-in For Excel

This is the easiest and quickest way for combining data from numerous Excel columns into one. Just make use of the third party merge cells add-in for Excel.

And with the merge cells add-in you can merge data from many cells by using any separator you like (for example carriage return or line break). With this, you can join row by row, column by column, or merge data from the selected cell into one without any loss.

There are many third-party add-ins online sites that allow you to download the add-ins and merge the cells easily in just a few clicks.


So this is all about merging rows and columns in Excel without any data loss.

Follow the given steps to combine text in rows and columns easily.

Hope the given different steps will allow you to perform the task easily in the rows and column. Here I have described different methods of merging rows and columns data in Excel without any data loss.

So make use of anyone that you find easy for you.

However if in case you come to face any issue or data loss situation in Excel then make use of the MS Excel Repair Tool. This is the best tool that allows you to repair and recover data from the corrupted, damaged Excel file.

Additionally, you can learn advanced Excel to become more productive and easily utilize Excel functions and formulas.

5 Easy Methods To Merge Rows and Columns in Excel Without Losing Data
Merging Excel rows and column is a very important task but if facing problem then read this article to rows and columns in Excel without losing any data...
Repair MS Excel Blog
Publisher Logo


Margret Arthur is an entrepreneur & content marketing expert. She writes tech blogs and expertise on MS Office, Excel, and other tech subjects. Her distinctive art of presenting tech information in easy to understand language is very impressive. When not writing, she loves unplanned travels.

This page shows examples of how to merge and combine data and tables (lists) using criteria. You can also download workbooks with the examples.

  • In the first example 2 tables/lists are merged to 1 with no duplicates. The new table is put in a new workbook and sorted.
  • In the second example we loop 2 lists and make 2 new: One with the shared values and one with the values that are not shared.
  • The third example shows how you can combine rows in 2 tables (in 2 different workbooks) if they have a shared value or 'key' - in this case a company name. The new, combined table is put in a new workbook.

The examples use arrays, ranges, collections, the worksheet function 'CountIf' and loops.

Merge to 1 table without duplicates

This example requires some values (text or numbers) in cell A1 and down on sheet 1 and 2. Copy the code by selecting it with the mouse, press CTRL+C to copy and paste into a VBA module with CTRL+V.

You can also download a zip-compressed workbook (Excel 2003) with this and the next example.

The code merges the values from 2 lists to 1 sorted list. Even if there are shared values in the 2 lists, the output list will have no duplicates. If for instance list 1 and 2 are like below, the output list will be like the third:

Here comes the code.

Find shared and not shared values in 2 lists

Like the previous macro this one requires a vertical list starting in cell A1 on both sheet 1 and 2. The macro compares the two lists and makes two new: One with shared values (present in both lists) and one with non-shared values. The new lists are inserted in column J and K on sheet 1.

To check if a value from one list is present in the other, we use the spreadsheet function 'CountIf'. It counts the instances of a value in a given range. With short lists speed doesn't matter much, but with longer ones we want to minimize looping.

How To Combine Multiple Tables In Excel 2007

You can download a zip-compressed workbook (Excel 2003) with this and the previous example.

For the code above to be foolproof it should verify that the two tables do exist, and it should also check if the array has more rows than the spreadsheet. If for instance the two lists share no values, the output list will be as long as the two lists put together.

Combine 2 tables

The last example shows how you can combine rows in 2 tables (in 2 different workbooks) based on criterion and insert the result in a new workbook. In this case a table with contact persons and one with company information are combined, if company names match.

Making your own workbooks to test this example is a bit tedious, so I recommend that you download the zip-compressed example workbooks, if you want to see how it works.

The macros are in the workbook 'persons.xls' and for the stuff to work you must insert the path to 'company-list.xls' on the sheet 'Macro'.

The table with contact persons (in 'persons.xls') has the following fields/columns:

Excel Combine 3 Tables Into 1

Contacts Company Tel. E-mail

The table with companies has the following fields/columns:

Company Address Postal code City Type Info

To put it short the macro loops the two tables, and if the company name matches, the data for the contact person(s) is appended. The new, combined table is put into a new workbook.

The number of columns in the combined table depends on the number of contact persons for each company.

Important tools for the macro are a collection, dynamic arrays, ranges and the spreadsheet function 'CountIf'. The reason for using arrays (and not just ranges) is speed. Here we go with a copy of the whole VBA module:

That was it. As mentioned I recommend downloading the workbooks if you want to see the macros in action. With VBA you can automate a lot in Excel and as shown above also merging and combining data or tables.

Have fun!