+ Reply to Thread
Results 1 to 5 of 5

Index/Match formula to account for duplicates

  1. #1
    Forum Contributor
    Join Date
    03-11-2018
    Location
    Tampa, Florida
    MS-Off Ver
    365
    Posts
    105

    Index/Match formula to account for duplicates

    I have the following formula which locates values in my array.

    =IFERROR(INDEX(Data!$CW$12:$CW$35,MATCH(B72,Data!$DL$12:$DL$35,0)),"")

    It works great as long as I don't have a duplicate value in "Data!$DL$12:$DL$35". How do I adjust this formula to account for duplicates?

    Thank you.

  2. #2
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Index/Match formula to account for duplicates

    In what way do you want to account for duplicates? The formula will find the first match, regardless of duplicates - what are you expecting it to do?
    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.

  3. #3
    Forum Contributor
    Join Date
    03-11-2018
    Location
    Tampa, Florida
    MS-Off Ver
    365
    Posts
    105

    Re: Index/Match formula to account for duplicates

    Current output looks like this:

    1 87
    6 84
    10 83
    8 81
    2 71
    2 71
    3 69

    Notice the 2's in Col A. Should look like this:

    1 87
    6 84
    10 83
    8 81
    2 71
    9 71
    3 69

  4. #4
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Index/Match formula to account for duplicates

    Where does the 9 come from?

    Attach a sample workbook.

  5. #5
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Index/Match formula to account for duplicates

    Hi there,


    It works great as long as I don't have a duplicate value in "Data!$DL$12:$DL$35". How do I adjust this formula to account for duplicates?


    It "works" (i.e. doesn't generate an error) even if there IS a duplicate value in the column! What do you mean by "adjust"?


    Regards,

    Greg M
    Attached Files Attached Files

+ 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] formula index / match issues when then there are duplicates
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-20-2019, 10:02 AM
  2. Formula taking into account first duplicates in two columns
    By mcbloach in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-16-2017, 11:18 AM
  3. [SOLVED] Index Match with Duplicates?
    By larchfield in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-27-2016, 11:58 AM
  4. Replies: 13
    Last Post: 06-04-2015, 01:59 AM
  5. [SOLVED] Problem Using LARGE formula with Index/Match to pull values when there are Duplicates
    By BDavis in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-11-2014, 02:23 PM
  6. Index and Match, Don't Want Duplicates
    By windme in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-24-2012, 09:43 AM
  7. Replies: 2
    Last Post: 03-16-2012, 12:03 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