Combining data from two different tables into one

tampa123

New Member
Joined
Feb 22, 2017
Messages
2
Team,
Need some assistance. I'm looking to consolidate two tables into one without duplicating the exact same information. I've posted an example with the desired result below. Please let me know if this is possible and if you have any questions.
[TABLE="width: 218"]
<tbody>[TR]
[TD]Table 1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ABC Company[/TD]
[TD="align: right"]$70,000 [/TD]
[/TR]
[TR]
[TD]DEF Company[/TD]
[TD="align: right"]$80,000 [/TD]
[/TR]
[TR]
[TD]XYZ Company[/TD]
[TD="align: right"]$1,000,000 [/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Table 2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ABC Company[/TD]
[TD="align: right"]$70,000 [/TD]
[/TR]
[TR]
[TD]GHI Company[/TD]
[TD="align: right"]$120,000 [/TD]
[/TR]
[TR]
[TD]JKL Company[/TD]
[TD="align: right"]$65,000 [/TD]
[/TR]
[TR]
[TD]XYZ Company[/TD]
[TD="align: right"]$1,000,000 [/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Combined Table[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ABC Company[/TD]
[TD="align: right"]$70,000 [/TD]
[/TR]
[TR]
[TD]XYZ Company[/TD]
[TD="align: right"]$1,000,000 [/TD]
[/TR]
[TR]
[TD]DEF Company[/TD]
[TD="align: right"]$80,000 [/TD]
[/TR]
[TR]
[TD]GHI Company[/TD]
[TD="align: right"]$120,000 [/TD]
[/TR]
[TR]
[TD]JKL Company[/TD]
[TD="align: right"]$65,000 [/TD]
[/TR]
</tbody><colgroup><col><col></colgroup>[/TABLE]
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
There are a lot of ways you could do this... but if I am understanding your problem right it would just be that if you copy and paste it it would create a lot of duplicate data row...

The easiest way to fix this is short and sweet.

1. select and copy all the data in one of the tables (doesn't matter which one)
2. Right click on the other table that you did not select the data from and and select "Insert rows above/below"
a. this will basically combine the two tables together and you can delete the one you selected from.
3. go to your data toolbar and select the tool that says "remove duplicates"
4. you can then select the column that has the duplicate rows of data and remove them (this removes the entire row based on if there are duplicates of anything)

Does this work for what you need?
 
Upvote 0
There are a lot of ways you could do this... but if I am understanding your problem right it would just be that if you copy and paste it it would create a lot of duplicate data row...

The easiest way to fix this is short and sweet.

1. select and copy all the data in one of the tables (doesn't matter which one)
2. Right click on the other table that you did not select the data from and and select "Insert rows above/below"
a. this will basically combine the two tables together and you can delete the one you selected from.
3. go to your data toolbar and select the tool that says "remove duplicates"
4. you can then select the column that has the duplicate rows of data and remove them (this removes the entire row based on if there are duplicates of anything)

Does this work for what you need?

Thanks hissonrr. This helps and was actually my workaround, but I didn't know if there was a way to combine vlookup, ifthen, etc formulas to automate the process?
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,876
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top