+ Reply to Thread
Results 1 to 8 of 8

Search for multiple values in one table in another

  1. #1
    Registered User
    Join Date
    07-29-2020
    Location
    Bedford, England
    MS-Off Ver
    2016
    Posts
    4

    Search for multiple values in one table in another

    I have one tab with say 10 numerical part numbers and need to search for them all at once in another table that contains hundreds of part numbers with stock quantities, etc. I can look individually but need to be able to do it quicker for all at once

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,972

    Re: Search for multiple values in one table in another

    1. Take a look at using vlookup()

    2. To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    07-29-2020
    Location
    Bedford, England
    MS-Off Ver
    2016
    Posts
    4

    Re: Search for multiple values in one table in another

    Thanks for the response. I have attached an example with a list of part numbers on one tab that need to be searched in the other tab all at once
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,882

    Re: Search for multiple values in one table in another

    Please tell or show us the results that you expect to see.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    07-29-2020
    Location
    Bedford, England
    MS-Off Ver
    2016
    Posts
    4
    Quote Originally Posted by JeteMc View Post
    Please tell or show us the results that you expect to see.
    Let us know if you have any questions.
    I would like to see all the data for each part number pulled into the tab

  6. #6
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Search for multiple values in one table in another

    Not sure is this your looking for,

    In D4, then copy down & across.

    =VLOOKUP($C4,Sales!$C:$P,COLUMNS($C$4:C4)+1,0)

    If this is not you are looking, please attach a sample file with your expected result.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  7. #7
    Registered User
    Join Date
    07-29-2020
    Location
    Bedford, England
    MS-Off Ver
    2016
    Posts
    4
    This is great. Thank you
    Last edited by AliGW; 08-07-2020 at 02:51 AM. Reason: Please don't quote unnecessarily!

  8. #8
    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. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,471

    Re: Search for multiple values in one table in another

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    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: 8
    Last Post: 12-02-2017, 11:59 AM
  2. [SOLVED] search table for unique values return values and corresponding cells to a different sheet
    By thara95 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-01-2017, 09:04 AM
  3. Search table to return multiple values
    By Hayzylou in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-11-2017, 07:10 AM
  4. Replies: 10
    Last Post: 09-16-2015, 11:25 PM
  5. Search for Values that Multiple Search Words Share
    By Drew67209 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-18-2014, 05:54 AM
  6. Search a table with multiple search inputs and return all matches
    By JDI in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-16-2014, 12:23 PM
  7. [SOLVED] Search for multiple string values in the first row of a table and format column values.
    By Excel_junky in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-12-2013, 12:48 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