+ Reply to Thread
Results 1 to 2 of 2

Array searching

  1. #1
    Registered User
    Join Date
    09-11-2009
    Location
    Bluffton, South Carolina
    MS-Off Ver
    Excel 2003
    Posts
    12

    Array searching

    I never know exactly what to put into the title bar since it is supposed to be descriptive!

    I am looking for a formula/function that will return the following:

    Say I have an array of data wherein there may be either multiple or unique occurences of values. I want Excel to return a list from that array listing each value only once regardless of how many times it occurs in the array.

    For example, the data array contains:
    ......... A .......... B ............ C ............ D
    1 ....(ABC) .... (ABC).... (DEF) .... (GHI)
    2 .... (GHI) .... (GHI) ...... (MNO) .... (PQR)
    3 .... (STU) .... (XYZ) .... (XYZ) .... (XYZ)

    ABCD and 123 are supposed to represent coulmns & rows, they don't quite line up right.

    I want Excel to generate a list:

    ABC
    DEF
    GHI
    MNO
    PQR
    STU
    XYZ

    Just one return for each value.

    The number of possible values (ABC, etc.) is around 100, making a formula for each individual value time-consuming. However, the data set is contained within a drop-down list (data validation). In other words, on another sheet is all of the possible values that might be in the desired array. Is this possible?

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Array searching

    the data set is contained within a drop-down list (data validation). In other words, on another sheet is all of the possible values that might be in the desired array. Is this possible?
    Can you elaborate on the above ?

    Are you saying that you have a master list in which all values in the "Array" appear ? If so, to avoid expensive formulae, you could run a COUNTIF adjacent to each of these entries in the master list against the array to see whether or not they are found and use those results as the basis for the final unique listing.

    Might be an idea to post a sample that reflects the key bits of your file - ie the Array, the master list and where you want the unique listing to appear (presumably for use with Data Validation or somesuch)

+ 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