+ Reply to Thread
Results 1 to 4 of 4

Index/Match - how to avoid same lookup if there are duplicates?

  1. #1
    Registered User
    Join Date
    10-04-2012
    Location
    NY
    MS-Off Ver
    Excel 2007
    Posts
    38

    Index/Match - how to avoid same lookup if there are duplicates?

    Hi, I'm trying to look up values where duplicates exist but do not want the same lookup value to be returned. When I use Index/Match, it returns the first like value it finds, so I'm ending up with the wrong reference. Can someone help? I'm attaching an example with the formula I was using.

    Thanks in advance!

    Book3.xlsx

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Index/Match - how to avoid same lookup if there are duplicates?

    In A8, hit with CTRL+SHIFT+ENTER not just ENTER.

    =INDEX(A$3:I$3,SMALL(IF(A$4:I$4=B8,COLUMN(A$4:I$4)-COLUMN(A$4)+1),COUNTIF(B$8:B8,B8)))

    Then copy down.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Registered User
    Join Date
    10-04-2012
    Location
    NY
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Index/Match - how to avoid same lookup if there are duplicates?

    Fantastic, thanks a million!!!

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Index/Match - how to avoid same lookup if there are duplicates?

    With a helprow i get this solution.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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