+ Reply to Thread
Results 1 to 10 of 10

Excel - Matching Two Tables Based On Criteria

  1. #1
    Registered User
    Join Date
    08-06-2019
    Location
    United Kingdom
    MS-Off Ver
    2016
    Posts
    13

    Excel - Matching Two Tables Based On Criteria

    Hi there,

    I need help with the following:

    I am trying to link the output of a table based on if set criteria are met, for example, if the function is listed as business process and the individual has grade A against the record then it returns T1 against the record. This is from a different worksheet. And am guessing it involves an index match but for the life of me can't get it to work.

    Please see below for the Grade Table tab into the main data table please see the attached sample excel for reference.

    Many thanks
    Attached Files Attached Files
    Last edited by Kpowz; 08-06-2019 at 05:25 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Excel - Matching Two Tables Based On Criteria

    Okay, I assume you are trying to fill in column F (and G?) in the Incumbent Data sheet. Can you explain some of your results. If I look at line 14 (Engineering Grade A), I would expect either T1 (if you're getting your results from the engineering column of Internal Grades or M1 if you're getting your results from Col C. How do you end up with M2? Please explain how you are pulling data.

    Also, what are you doing with cell P9 in Internal grades?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    08-06-2019
    Location
    United Kingdom
    MS-Off Ver
    2016
    Posts
    13

    Re: Excel - Matching Two Tables Based On Criteria

    Hi ChemistB,

    Thanks for responding, Yes it is column F and G that I am looking to populate and the results are based on mangers being identified from the first table and this was a simple vlookup I conducted after I filtered out the managers. As I wasn't sure if it was also possible. You can ignore the cell in P9 as this was just an error and was trying to do an index match. It should state "P1".

    Thanks

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: Excel - Matching Two Tables Based On Criteria

    I am hugely confused. You expect a formula in Incumbent data F&G. Please explain how you got the results that are entered there? I can't see the logic at all.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: Lá fhéile Pádraig sona dhaoibh

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Excel - Matching Two Tables Based On Criteria

    So that still doesn't explain how you ended up with M2 when the code in Internal Grades for Grade A is M1? Are we looking at the engineering column and finding the first value (that would be T4 in cell H6) and then looking across to Col C to find M2? (even though that line (line 6) says Grade D)?

  6. #6
    Registered User
    Join Date
    08-06-2019
    Location
    United Kingdom
    MS-Off Ver
    2016
    Posts
    13

    Re: Excel - Matching Two Tables Based On Criteria

    Hi both,

    Ignore the information that is entered as that should I have been removed before I inputted the file.

    Yes ChemistB that is what I am trying to achieve if an individual sits in engineering in column C and have Grade A in Column B, then I want that to return the values from the Internal Grade sheet in H9 to report back into column F in the incumbent data sheet.

    There are two tables in the internal data sheet as I want to add an extra column into the incumbent data so it flags if they are manager with a yes/no and then if yes it does the above lookup in the first table starting B2 in the the Internal Grading sheet, if no then it looks at the other table which starts at F3. Both processes using the same as above to return values into column F and column G if applicable.

    Thanks

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Excel - Matching Two Tables Based On Criteria

    Okay, here's what I think you are asking
    In F24 of Incumbent Data for example...
    If there is a value in Logistics on the Grade A row (there is, "W1") then return the associated M value from Col C ("M1"). If there is no value under Logistics in that row, return nothing.

    Is that what you want?

  8. #8
    Registered User
    Join Date
    08-06-2019
    Location
    United Kingdom
    MS-Off Ver
    2016
    Posts
    13

    Re: Excel - Matching Two Tables Based On Criteria

    Yes that sounds about right, sorry for the misunderstanding.

    I am looking for it to return the value "W1" from that table based on it being in logistics by looking at the function above as they all have different values dependent on the set grading for example having grade A, and if there is a manager status of yes then refer to to col c value based on just the grade column. I have attached an updated sheet which should hopefully help.
    Attached Files Attached Files

  9. #9
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Excel - Matching Two Tables Based On Criteria

    See if this is what you are looking for. In G9 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In H9 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    08-06-2019
    Location
    United Kingdom
    MS-Off Ver
    2016
    Posts
    13

    Re: Excel - Matching Two Tables Based On Criteria

    This is perfect! Can't thank you enough! Exactly what I was looking for!

+ 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] How to create excel tool to show more than one matching results based on a criteria
    By Mave007 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-18-2018, 02:50 AM
  2. VBA Macro Dividing Values Based upon Matching Criteria and Description Criteria
    By pvsvprasad in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 09-18-2016, 12:39 PM
  3. [SOLVED] tricky multiple lookups from two tables with matching criteria
    By cmoh in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-15-2015, 02:12 PM
  4. Replies: 2
    Last Post: 06-09-2013, 08:50 PM
  5. Matching up two data tables based on time?
    By r8nlmv in forum Excel General
    Replies: 5
    Last Post: 05-25-2011, 01:06 AM
  6. Replies: 5
    Last Post: 05-27-2010, 11:30 AM

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