+ Reply to Thread
Results 1 to 5 of 5

two-array matching formula with multiple matches

  1. #1
    Registered User
    Join Date
    11-10-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    12

    Question two-array matching formula with multiple matches

    Hello and thank you for taking the time to read this post,

    I am using the following formula:
    =IF(ISERROR(MATCH(E2, HN2:NU2,0)),"",INDEX($HN$1:$NU$1, MATCH(E2, HN2:NU2,0)))

    The formula:
    (1) finds the matching instance of the value within one cell (E2) within array 1 (HN2:NU2)
    (2) returns the corresponding value of a cell from array 2 ($HN$1:$NU$1) whose location matches

    The problem with my formula:
    If array 1 (HN2:NU2) contains multiple instances of the same value that I am trying to match (E2), then my output for array 2 ($HN$1:$NU$1) will only corresponds with the first instance of this value

    My question:
    Is it possible to output any other values from array 2 ($HN$1:$NU$1) that correspond to the matches between the original cell value (E2) and array 1 (HN2:NU2)?

    Please let me know if I should clarify this further.

    Thank you so much

  2. #2
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: two-array matching formula with multiple matches

    Yes, it's possible. We would like to see a sample of your spread sheet.

  3. #3
    Registered User
    Join Date
    11-10-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: two-array matching formula with multiple matches

    Please view the file below for an example, and thanks in advance very much for your help!

    Example_.xlsx

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,608

    Re: two-array matching formula with multiple matches

    Does the attached get you started ?
    Do not hesitate to come back if more help ( especially positioning of results) is needed
    Copy of Example_.xlsx

  5. #5
    Registered User
    Join Date
    11-10-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: two-array matching formula with multiple matches

    What you've provided me with is perfect! Thank you very much for your time and effort.

    Best regards

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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