+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Array formula to extract unique values from a range

  1. #1
    Forum Contributor
    Join Date
    02-09-2011
    Location
    Perth, Australia
    MS-Off Ver
    2016
    Posts
    161

    Array formula to extract unique values from a range

    Hi forum,

    I am using Excel 2010.

    I have a range named Data that runs down one column. There is a lot of duplication of the values within the range

    I am trying to use the following formula (which I got out of an Excel book) to get a list of unique values:

    =INDEX(Data,SMALL(IF(MATCH(Data,Data,0)=ROW(INDIRECT("1:"&ROWS(Data))),MATCH(Data,Data,0),""),ROW(INDIRECT("1:"&ROWS(Data)))))

    I enter the formula into a single cell then press Ctrl+Shft+Enter

    All I get is the value that is on top of the list.

    What am I doing wrong and how can I get a list of ALL unique values from the range?


    Thanks very much

    Dave

  2. #2
    Forum Contributor
    Join Date
    02-09-2011
    Location
    Perth, Australia
    MS-Off Ver
    2016
    Posts
    161

    Re: Array formula to extract unique values from a range

    Hi, I found what I was doing wrong- I had to select all the cells beside the range (not a single cell) then type the formula.

    Is there a way to copy this formula and paste it in so I dont have to type it each time I use it?
    If I copy and paste or use Ctrl+V it doesnt work.

    Thanks very much

    Dave

  3. #3
    Valued Forum Contributor
    Join Date
    05-23-2011
    Location
    Lahore PK
    MS-Off Ver
    Excel 2007, 2013
    Posts
    627

    Re: Array formula to extract unique values from a range

    upload a sample workbook with sample data and your desired results

    In order to attach a file Click the Go Advanced button, and click on the Manage Attachments button
    Azam
    If you want to say Thank you to a member, click the reputation icon (Star) in the left bottom of the post.
    For prompt answer, be descriptive, concise, short, direct, and to-the-point.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Array formula to extract unique values from a range

    Ηι

    I think there is most easy way to get the effect you.
    Assuming that the values, are in column A, starting in A2,then:
    1) Name all your range as "List"
    2) In B2, put the following formula and drag as needed.

    =IF(COUNTIF(List;A2)>1;"";"unique")
    Last edited by Fotis1991; 11-24-2011 at 06:14 AM.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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