+ Reply to Thread
Results 1 to 5 of 5

Index Match duplicate values without gaps or repeat values?

  1. #1
    Registered User
    Join Date
    02-10-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    58

    Index Match duplicate values without gaps or repeat values?

    Hi all,

    I have a dataset that i want to extract from. It looks like this:

    Country Data
    US A
    UK B
    US C
    UK D
    US E

    I want to use the identifier US to pull out all US data. However, as i'm doing it now, I'm getting
    US A
    US A
    US C
    US C
    US E

    I would like to just get
    US A
    US C
    US E

    I hope this is clear.

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Index Match duplicate values without gaps or repeat values?

    If you have your data in the range "A2:B6" try below formula in C2, copy and paste formula C2:D6
    Please Login or Register  to view this content.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,890

    Re: Index Match duplicate values without gaps or repeat values?

    Without seeing a sample spreadsheet, the best I can offer is that you go to Data--Sort & Filter--Advanced and then use the built in function of Excel to find the Unique values.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Index Match duplicate values without gaps or repeat values?

    Please try at D1 > US

    D2:E2 copy down

    =IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW($B$2:$B$99)/($A$2:$A$6=$D$1),ROWS(D$2:D2))),"")
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-10-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    58

    Re: Index Match duplicate values without gaps or repeat values?

    This works like a charm! Thanks!

+ 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] Avoiding Duplicate Values when using INDEX/MATCH
    By CharlieVictorEcho in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-11-2023, 03:45 PM
  2. [SOLVED] Index Match Large Duplicate Values
    By lalahaedong_excel in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-22-2017, 01:05 PM
  3. Match and Index with Duplicate values
    By shortracer5 in forum Excel General
    Replies: 1
    Last Post: 09-09-2016, 05:25 AM
  4. Index Match & Duplicate values
    By Shaulyt in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2016, 05:23 PM
  5. Index Match with Duplicate Values
    By js2178a in forum Excel General
    Replies: 2
    Last Post: 09-28-2014, 02:21 AM
  6. Index/Match where data has duplicate values
    By ragatha in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-06-2012, 12:09 PM
  7. Excel, Match/Index when duplicate values?
    By Fizziii in forum Excel General
    Replies: 0
    Last Post: 01-18-2011, 02:12 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