+ Reply to Thread
Results 1 to 2 of 2

How to combine multiple tables together and match the data?

Hybrid View

kevinsmith0000 How to combine multiple... 05-15-2013, 02:06 AM
Harribone Re: How to combine multiple... 05-15-2013, 02:27 AM
  1. #1
    Registered User
    Join Date
    05-15-2013
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    1

    How to combine multiple tables together and match the data?

    So on an excel sheet, I have a bunch of data, but they are separated into two separate tables.

    The first table has two columns, "Name of person" and "ID number", with a bunch of data under that.

    The second table has two columns, "ID number" and "Salary", with a bunch of data under that.

    The thing is, the order of the ID numbers in the first table is not the same order as the ID numbers in the second table. But what I basically want to do is combine both of these tables into one table with three columns, "Name of person", "ID number" and "Salary". But I'm not sure how I can combine the two tables to do that.

    In this new table, I want to keep the order the same as the first table, but I just want to match the ID numbers to the salaries in the third column.

    Can someone help me do that?

  2. #2
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: How to combine multiple tables together and match the data?

    Create a new column in your first table which will have the salary. I will assume the first row of data on this table is row 2 (A2 and B2, C2 will be the salary).
    In C2 type:

    =IFERROR(VLOOKUP(B2,Sheet2!A2:B10,2,0),"")

    Change Sheet2!A2:B10 to the range of you second table with the salaries. Drag this down to fill your table with salaries.Note if there is a problem finding the ID in table 2 the cell will remain blank.
    Select the third column of table 1 and choose copy. Then right click and choose Paste Special>Values. This will remove the formulas but keep the data.
    Say thanks, click *

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1