+ Reply to Thread
Results 1 to 4 of 4

Lookup all matches for multiple lookup values

  1. #1
    Registered User
    Join Date
    12-10-2019
    Location
    Houston
    MS-Off Ver
    2018
    Posts
    4

    Lookup all matches for multiple lookup values

    Hello,

    I have a list of multiple values I need to lookup in a corresponding table. I would like to pull all values that match at least one of the values I am looking up. I have attached an example. I am looking up the ASSETNUM and want to return all of the ITEMNUM that match at least one of the ASSETNUM that is being looked up.

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,897

    Re: Lookup all matches for multiple lookup values

    If you are willing to use Power Query, then you can join the two tables on a common field. Here is the Mcode and attached file

    Please Login or Register  to view this content.
    Data Range
    A
    B
    C
    1
    ASSETNUM
    Table2.Column2
    Table2.Column3
    2
    CB3001981
    1110909
    MODULE:POWER SUPPLY,110/230VAC,6118,OMNI
    3
    CB3001977
    1112060
    DETECTOR,FLAME:-60 TO 85deg C;24V;DC>
    4
    CB3001980
    1112060
    DETECTOR,FLAME:-60 TO 85deg C;24V;DC>
    5
    CB3001981
    1112060
    DETECTOR,FLAME:-60 TO 85deg C;24V;DC>
    6
    CB3001980
    1112471
    MODULE:COMBO-A,INPUT/OUTPUT,6006,OMNI
    7
    CB3001980
    1112493
    MODULE:SERIAL/ETHERNET-MODBUS MUX,6209,>
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    12-10-2019
    Location
    Houston
    MS-Off Ver
    2018
    Posts
    4

    Re: Lookup all matches for multiple lookup values

    Thank you! Sorry for just now responding, but using a powerquery did work.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: Lookup all matches for multiple lookup values

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Replies: 3
    Last Post: 08-23-2017, 07:04 PM
  2. [SOLVED] Multiple lookup criteria and sum values based on matches.
    By skonduru in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-31-2016, 11:53 PM
  3. Replies: 4
    Last Post: 05-19-2015, 08:42 PM
  4. [SOLVED] Lookup Values which meet two or more criteria and return multiple matches horizontally
    By josetmg in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-03-2015, 01:16 AM
  5. Replies: 3
    Last Post: 04-08-2014, 03:11 AM
  6. [SOLVED] one lookup value, multiple matches
    By dev111ski in forum Excel General
    Replies: 8
    Last Post: 05-17-2012, 09:05 AM
  7. Replies: 3
    Last Post: 10-10-2005, 01:05 PM

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