+ Reply to Thread
Results 1 to 9 of 9

index match remove duplicates

  1. #1
    Forum Contributor
    Join Date
    06-20-2007
    Location
    Buckeye, AZ
    MS-Off Ver
    365
    Posts
    272

    index match remove duplicates

    In the attached workbook I'm trying to create a drop down list (D2) to return matches to Skew (C2) without duplicates, from array C5:D3240.
    Any help or suggestions would be greatly appreciated.
    Sick
    Attached Files Attached Files
    Last edited by sick stigma; 03-26-2015 at 12:21 PM.

  2. #2
    Registered User
    Join Date
    12-11-2014
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    94

    Re: index match remove duplicates

    I'd say start with creating a list of unique values. In E5, let's put this:

    =IFERROR(INDEX($C$5:$C$3240,MATCH(0,INDEX(COUNTIF($E$4:E4,$C$5:$C$3240),0,0),0)),"")

    ...and copy it down until you run out of values. Then, for your data validation formula, use this:

    =OFFSET($E$5,0,0,COUNTIF(E5:E48,">0"))
    If I have helped you, please add to my reputation!

  3. #3
    Registered User
    Join Date
    12-11-2014
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    94

    Re: index match remove duplicates

    I realized I misunderstood your question, give me a moment to work out a solution.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: index match remove duplicates

    Have you considered using filters of a pivot table for this?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Contributor
    Join Date
    06-20-2007
    Location
    Buckeye, AZ
    MS-Off Ver
    365
    Posts
    272

    Re: index match remove duplicates

    well, you solved one of my next problems but not the intended. Let's try this:
    If I put "151103" in C2, I need the drop down in D2 to only show OFFSET MATCHES to C2 from INDEX D5:d3240 without duplicates.
    Is that possible?
    Sick

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: index match remove duplicates

    what do you mean by OFFSET matches?

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: index match remove duplicates

    OK the more I look at this, the more it confuses me.

    Perhaps this in I5...
    =IFERROR(INDEX($C$5:$C$3240,MATCH(0,INDEX(COUNTIF($I$4:I4,$C$5:$C$3240),0,0),0)),"")
    then J5...
    =VLOOKUP(I5,$C$5:$D$3240,2,0)
    both copied down

    If this is not what you want, please shopw expected outcome

  8. #8
    Registered User
    Join Date
    12-11-2014
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    94

    Re: index match remove duplicates

    Try this in E5 instead (it is an array formula, so confirm it by pressing CTRL+SHIFT+ENTER)

    =IFERROR(INDEX($D$5:$D$3240,MATCH(0,IF($C$2=$C$5:$C$3240,COUNTIF($E$4:$E4,$D$5:$D$3240),""),0)),"")

    EDIT: and then use this as your data validation:

    =OFFSET($E$5,0,0,COUNTIF(E5:E48,"*"))
    Last edited by npatridge; 03-25-2015 at 02:23 PM.

  9. #9
    Forum Contributor
    Join Date
    06-20-2007
    Location
    Buckeye, AZ
    MS-Off Ver
    365
    Posts
    272

    Re: index match remove duplicates

    Npatridge,
    that worked. Thank you!!
    Sick

+ 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. Index Match from two columns and Remove duplicates,
    By gurkovic in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-16-2014, 05:18 AM
  2. [SOLVED] Excel 2007 : INDEX, MATCH and a lot of IFs and duplicates
    By dip11 in forum Excel General
    Replies: 13
    Last Post: 06-11-2012, 12:10 PM
  3. Replies: 2
    Last Post: 03-16-2012, 12:03 PM
  4. Index Match Duplicates
    By scooby99 in forum Excel General
    Replies: 5
    Last Post: 12-30-2011, 01:48 PM
  5. Index Match Duplicates
    By Richww2 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-26-2011, 10:54 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