+ Reply to Thread
Results 1 to 4 of 4

Return all matches between two arrays

  1. #1
    Forum Contributor
    Join Date
    05-20-2008
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    174

    Return all matches between two arrays

    Hi I have two lists of data that are of different lengths.
    One is a dynamic range of between 1-10 lines and the other is a named range.

    Is there a way to check the list in the table for any matches in the named range and return the cell value that matches?
    There would be a maximum of two matches each time. I have already filtered a unique list of order numbers to another sheet.

    Then (because I'm a little bit greedy) is there an easy way to add/concat a value from another cell in the same row to each result?
    I have tried to give an example with a much reduced data sample. In reality I would be using a data set of c50,000 lines which I am splitting into about 10,000 ranges.
    Attached Files Attached Files
    Last edited by Andrew-Mark; 02-05-2021 at 07:46 AM.

  2. #2
    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,053

    Re: Return all matches between two arrays

    In J4, copied down:
    =UNIQUE(B4:B19)

    In K4, copied across and dnown:
    =IFERROR(INDEX($C:$C,AGGREGATE(15,6,ROW($C$4:$C$19)/(($B$4:$B$19=$J4)*(ISNUMBER(MATCH($C$4:$C$19,$H$4:$H$12,0)))),COLUMNS($K4:K4))),"")
    Attached Files Attached Files
    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

  3. #3
    Forum Contributor
    Join Date
    05-20-2008
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    174

    Wink Re: Return all matches between two arrays

    Hi Glenn,

    Many thanks for your help.
    It took me a little while to work out how you did it :D
    Didn't work for my workbook 'out of the box' but with a little tweaking it was perfect.

    Could never have done it without your help

  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,053

    Re: Return all matches between two arrays

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

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

+ 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] If date matches and room matches, return room info in to cell
    By HonorBray in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-12-2018, 12:09 PM
  2. [SOLVED] Return Next Date After Today - No Arrays
    By hardofhearing in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-09-2016, 04:10 PM
  3. Count matches from two arrays.
    By Smedlex in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-02-2014, 06:00 PM
  4. Need excel to return a value using arrays
    By jivephish in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-20-2012, 11:46 AM
  5. Finding matches between two date arrays
    By cpranov in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-08-2011, 10:15 AM
  6. I need to count matches bettween two arrays
    By cradino in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-30-2005, 12:57 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