+ Reply to Thread
Results 1 to 4 of 4

Trying to find multiple ID numbers which match a particular name from a list.

  1. #1
    Registered User
    Join Date
    04-09-2014
    Location
    Beaverton, OR
    MS-Off Ver
    Office 2010
    Posts
    2

    Trying to find multiple ID numbers which match a particular name from a list.

    I have 2 spreadsheets with many rows (in the tens of thousands) and columns (about 20 or so) of data.

    I am trying to take the ID# from one spreadsheet and append it to the other, based on a name match. Typically I would use a vlookup, but, in this instance, most companies appear more than once and they often have many different ID#s associated with them. I am looking to return each unique ID# that is associated with each company, and display them horizontally next to that company's name.

    Since this is including a lot of private data, I have included a small, generic example of what I am looking to search off of and output. Sample Spreadsheet.xlsx

    I have seen examples of how to return multiple values using index functions, but, they all seem to only be able to handle one name at a time, and it displays the values vertically from that. Since I am trying to do this for thousands of rows of data, this won't work for me. I need to be able to have a function/formula of some sort that I can apply to each and every of the thousands of rows of data simultaneously. And, on top of that, I'd like to be able to display the 2nd, 3rd, etc ID#s for each company in additional columns of data.

    Is this at all possible, or am I trying to bite off more than I can chew?

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Trying to find multiple ID numbers which match a particular name from a list.

    In E2

    Copy and paste this array formula. Drag it across and down.


    =IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$10=$D2,ROW($A$2:$A$10)),COLUMNS($D$1:D1))),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    04-09-2014
    Location
    Beaverton, OR
    MS-Off Ver
    Office 2010
    Posts
    2

    Re: Trying to find multiple ID numbers which match a particular name from a list.

    Awesome! That worked like a charm! Took a little while to process (obviously), but, it did exactly what I needed.

    Thanks a bunch! That saved me hours of work and a serious headache!

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Trying to find multiple ID numbers which match a particular name from a list.

    You're welcome.

+ 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] Application.Match help. Find a match if first 4 numbers are the same. Asterisk not working
    By thelisa in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-24-2013, 08:01 AM
  2. Match function to find numbers
    By vbaexcel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-08-2011, 06:31 PM
  3. If formula to match a list of numbers to another list
    By Robotacha2010 in forum Excel General
    Replies: 5
    Last Post: 01-19-2011, 11:26 AM
  4. How to find MATCH numbers ?
    By toyota58 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-20-2005, 05:05 AM
  5. Replies: 2
    Last Post: 05-09-2005, 11:06 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