+ Reply to Thread
Results 1 to 6 of 6

How to get Unique Values in an Index

  1. #1
    Registered User
    Join Date
    09-13-2017
    Location
    Portland, Oregon
    MS-Off Ver
    2016
    Posts
    5

    How to get Unique Values in an Index

    Hi All,

    I've been trying to find out how to get unique values out of an index that I have. What I need is to generate a list of unique identifiers from a criteria , in this case, "AMZ". It's referencing a table, and I'd like to be able to see a list of anything that has that code "AMZ" but only 1 of each identifier if that makes sense. I'd also like it to pull in a descending fashion, so if I arrange my list as date in descending order, it'd pull the earliest identifier first. The Formula works for now, but I need to know what I need to put in the formula, in order to eliminate duplicate values.


    Here is my formula

    =IFERROR(INDEX($A:$C,SMALL(IF("A"=$C:$C,ROW($C:$C)-ROW(INDEX($C:$C,1,1))+1),ROWS(A1)),2),"")


    Attached is an example.
    Attached Files Attached Files
    Last edited by Lecurota; 10-20-2017 at 06:25 PM.

  2. #2
    Registered User
    Join Date
    09-13-2017
    Location
    Portland, Oregon
    MS-Off Ver
    2016
    Posts
    5

    Re: How to get Unique Values in an Index

    I attached a reference example book.

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: How to get Unique Values in an Index

    The following is based off of your sample workbook and expected results (in the workbook) from post #1.

    In E3, try this:

    =IFERROR(INDEX(B$2:B$14,MATCH(0,IF(C$2:C$14="A",COUNTIF(E$2:E2,B$2:B$14),""),0)),"") Ctrl Shift Enter

  4. #4
    Registered User
    Join Date
    09-13-2017
    Location
    Portland, Oregon
    MS-Off Ver
    2016
    Posts
    5

    Re: How to get Unique Values in an Index

    Quote Originally Posted by 63falcondude View Post
    The following is based off of your sample workbook and expected results (in the workbook) from post #1.

    In E3, try this:

    =IFERROR(INDEX(B$2:B$14,MATCH(0,IF(C$2:C$14="A",COUNTIF(E$2:E2,B$2:B$14),""),0)),"") Ctrl Shift Enter
    That works, but for each subsequent cell, there's an intermittent lag proceeding the CTRL SHIFT ENTER

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: How to get Unique Values in an Index

    I'm not sure what that means. Are you saying that the formula is slow?

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: How to get Unique Values in an Index

    Hi Lecurota,

    It sounds like you want to do an Advanced Filter of your data using a "*AMZ*" for the criteria. If you sort by Date from old to new and check the box in the Advanced Filter Dialog that wants "Unique Records Only" it might give what you want. It is still hard to determine the question without a sample workbook.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say 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. Index/Match return all unique values
    By eggselent in forum Excel General
    Replies: 1
    Last Post: 10-02-2017, 12:13 PM
  2. Index Match with unique values
    By Innervision in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-16-2017, 12:59 PM
  3. [SOLVED] Using INDEX MATCH to return unique values for non-unique search term
    By rico_suave in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 06-03-2015, 01:53 AM
  4. Index match to find unique values
    By BobTheRocker in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-17-2014, 02:17 AM
  5. Using Index-Match to pull non-unique values
    By acsherman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-22-2013, 04:08 PM
  6. [SOLVED] Unique values with Index formula
    By e.isayev in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-26-2013, 12:55 PM
  7. Using MATCH and INDEX to extract unique values
    By jg70124 in forum Excel General
    Replies: 1
    Last Post: 05-17-2006, 03:10 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