Skip to main content
 

How to merge two tables by matching a column in Excel?

Author: Sun Last Modified: 2024-08-30

Supposing you have two tables in two different sheets, one is main table, and the other is new data table. Now you want to merge these two tables by a matching column and update the data as below screenshot shown, how can you quickly solve it in Excel? In this article, I will introduce the tricks on combining two tables by a column quickly.


arrow blue right bubble Merge two tables by a column with VLOOKUP

To merge two tables by a column matching, you can apply VLOOUP function.

1. Select a blank cell next to the main table you, C2 for instance. See screenshot:
Select a blank cell next to the main table

2. Enter this formula =IFERROR(VLOOKUP($A2,Sheet2!$A$1:$C$6,COLUMN(A1),FALSE),"") into it, then drag the autofill handle right until blank cell appears, and then drag the fill handle down to the cells needed this formula. See screenshot:
enter a formula and drag it to other cells

3. You can add the new column headers to the merged table. See screenshot:
add the new column headers to the merged table


arrow blue right bubble Merge two tables by a column with Tables Merge function

The LOOKUP function will be little troublesome for you, but fortunately, there is a helpful function Tables Merge in Kutools for Excel which can quickly add and update new items in the main table based on another table.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Enhanced with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

1. Select the main table you want to use to update and merge with another, click Kutools Plus > Tables Merge.
click Tables Merge feature of kutools

2. Then in the Tables Merge wizard dialog, select the lookup table in Select the lookup table textbox, check the options if the tables have headers.
select the lookup table

3. Click Next, in step 2 of the wizard, check the key column you want to merge based on.
check the key column you want to merge based on

4. Click Next, in step 3 of wizard, check the column(s) you want to update the data.
check the column(s) you want to update the data

5. Click Next to next step, check the new column(s) you want to add to the main data.
check the new column(s) you want to add to the main data

6. Click Next, in the last step, you need to set some options for the new items, such as highlighted the updated ones with background color.
set options for the new items

7. Click Finish. The main table has been updated and added with new items.
The main table has been updated and added with new items


arrow blue right bubble Merge multiple tables by column headers into one sheet with Kutools for Excel

If you want to merge multiple tables across sheets or workbooks by column headers into a single sheet as below screenshot shown, you can apply the powerful Combine function of Kutools for Excel to quickly solve it.
Merge multiple tables by column headers into one sheet

After installing Kutools for Excel, please do as below:

1. Enable Excel and click Kutools Plus > Combine, and in the popping dialog, check Combine multiple worksheets from workbooks into one worksheet. See screenshot:
click Combine feature of kutools
check Combine multiple worksheets from workbooks into one worksheet

2. Then click Next to go to Step 2 of 3 dialog, and add the workbooks by clicking Add button, then select the sheet names you want to merge from Worksheet list section. See screenshot:
add the workbooks to merge in the dialog box

3. Click Next to go to Step 3 of 3 dialog. In the last step of the dialog, specify the title row number into it, here is one, also you can specify other setting options as you need. See screenshot:
specify options in the last step

4. Click Finish, a dialog pops out for choosing a folder to place the merged new workbook. And click Save to go to first one Kutools for Excel dialog which remind you whether open the combined workbook, click Yes to open it or no, and then the second Kutools for Excel dialog pops out for reminding you to save this combine scenario, click any options as you need.
click Save button
a prompt box remind you whether open the combined workbook
a prompt box to remind to save scenario or not

Now the sheets have been merged into one single sheet based on column headers.
the sheets have been merged into one single sheet

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!