+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    04-18-2006
    Posts
    24

    Return a consolidated array?

    I was wondering if anyone know of a function that will look at a range of cells containing text and return a consolidated array, which eliminates duplicate entries. For example, if have a range such as:

    Apple
    Apple
    Apple
    Banana
    Banana
    Orange
    Orange
    Orange
    Orange

    I would like to return the list: Apple, Banana, Orange for use in a data validation drop-down.

    Thanks.

  2. #2
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,141

    Re: Return a consolidated array?

    Try Advanced Filter found in the DATA|FILTER menu... (make sure to check Unique Records).
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    04-18-2006
    Posts
    24

    Re: Return a consolidated array?

    Thanks. However, I was hoping to achieve this effect by using a function which can be used for data validation. I'm trying to get a drop-down list based on unique entries from a list such as the fruit example above. Any other thoughts? Thanks again.

  4. #4
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,141

    Re: Return a consolidated array?

    Just point the datavalidation to the list that you created with Advanced Filter.

    The alternative would be a VBA macro... which is not my forte.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  5. #5
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,141

    Re: Return a consolidated array?

    Just point the datavalidation to the list that you created with Advanced Filter.

    The alternative would be a VBA macro... which is not my forte.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

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.2.0