+ Reply to Thread
Results 1 to 7 of 7

Formula: return unique values

  1. #1
    Registered User
    Join Date
    04-23-2012
    Location
    Amsterdam, Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    24

    Formula: return unique values

    Hi, Hope someone can help me with this headbreaking problem

    I have a huge list of items:

    Bread
    butter
    milk
    cheese
    milk
    milk
    Cheese
    Gum
    Water
    Milk
    Cheese
    Bread
    Bread
    butter
    milk
    cheese
    milk
    milk
    Cheese

    I need a formula to return the unique items, so:
    Bread
    Butter
    Milk
    Cheese
    Gum
    Water

    The items are in column A and would like to have the unique list (automatically) in column B

    Thank you so much in advance

  2. #2
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Formula: return unique values

    if the above list is in cells A2 through A20, put the following CSE formula in B2 (ensure that B1 IS blank or has a value that does not exist between A2 through A20):

    Please Login or Register  to view this content.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  3. #3
    Registered User
    Join Date
    04-23-2012
    Location
    Amsterdam, Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Formula: return unique values

    Thanks for your help,

    But it doesn't work. It only displays -

  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: Formula: return unique values

    Hi

    With your list starting in A2, in B2(i need an empty, or title list name in B1), use this.

    =LOOKUP(REPT("Z",255),CHOOSE({1\2},"",INDEX($A$2:$A$100,MATCH(TRUE,INDEX(ISNA(MATCH($A$2:$A$100,$B$2:$B2,0)),0),0))))

    Is this, works for you?
    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.

  5. #5
    Registered User
    Join Date
    04-23-2012
    Location
    Amsterdam, Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Formula: return unique values

    Wow!!! This is really great!!!!!

  6. #6
    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: Formula: return unique values

    ..So, I think I can guess that formula works well for you....

    Thanks for the feed back and also for the reb*.

    Pls, mark your thread, as SOlved.

  7. #7
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Formula: return unique values

    Quote Originally Posted by Bramjonker View Post
    Thanks for your help,

    But it doesn't work. It only displays -
    did you observe i said that it is a CSE formula? i have in my signature instructions on how to enter a CSE formula - you have to confirm such formulae with CTRL+SHIFT+ENTER, not just with ENTER.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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