+ Reply to Thread
Results 1 to 4 of 4

Connect two table based on two criterias.

  1. #1
    Registered User
    Join Date
    04-08-2019
    Location
    Milwaukee, USA
    MS-Off Ver
    2010
    Posts
    2

    Connect two table based on two criterias.

    Dear Helpers,


    I have following situation:

    Table 1
    (column)
    (A) Order Number
    (B) Operation Number
    (C) Employee Number <- (My goal is to bring this column from Table 2 to Table 1 in the right order based on the Order and Operation Number)
    et cetera (other important columns, which are not included in Table 2)

    Table 2
    (column)
    (A) Order Number
    (B) Operation Number
    (C) Employee Number

    Example

    Table 1
    Order Number/ Operation Number/ Employee Number/ (other important columns)
    W1234/ 020/ (to be added)/

    Table 2
    Order Number/ Operation Number/ Employee Number/
    W1234/ 020/ 334/


    Goal:

    In both table Order Number and Operation Number are equal, therefore Employee Number should be added in the right row in table 1.


    I can not use vlookup, since vlookup is only working with one criteria. But I need to add the Employee Number based on two criterias.

    Thank you very much for your help in advance.

    BR
    Last edited by erekose; 04-08-2019 at 03:11 PM. Reason: better overview

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Connect two table based on two criterias.

    Hi erekose and welcome to the forum,

    Use Index Match as shown in the attached instead. I've created a short sample of your problem.

    Index Match two columns Lookup.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Connect two table based on two criterias.

    A common approach to this sort of problem is to create helper columns which concatenate the multiple columns which together are unique. With this then VLOOKUP or INDEX-MATCH will work.
    Martin

  4. #4
    Registered User
    Join Date
    04-08-2019
    Location
    Milwaukee, USA
    MS-Off Ver
    2010
    Posts
    2

    Re: Connect two table based on two criterias.

    Thank you very much, especially for your example.

    I could add the operator number to the right rows.

    Also thanks to mrice!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Dynamic based on criterias, Delete Excel Table with Selection.ListObject.ListRows(x).Delet
    By radian89 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2017, 10:51 PM
  2. [SOLVED] Pull the right value from table based on two criterias
    By InvalidTxtString in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-19-2016, 05:11 PM
  3. [SOLVED] Can Anyone Connect My Slicers In This Table
    By NewJerichoMan in forum Excel General
    Replies: 7
    Last Post: 04-26-2015, 11:10 PM
  4. Connect to table from another excel workbook using ADO
    By hcyeap in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-03-2014, 06:19 AM
  5. Extract values from table based on 2 criterias
    By plamenbv in forum Excel General
    Replies: 0
    Last Post: 09-19-2013, 05:09 AM
  6. Replies: 1
    Last Post: 07-31-2013, 04:11 PM
  7. summing a pivot table based on for criterias
    By jwongsf in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-17-2009, 05:17 PM

Tags for this Thread

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