+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    03-15-2010
    Location
    Atlanta
    MS-Off Ver
    Office 2007
    Posts
    3

    Looking for Excel function that displays first occurrence of data in a range of data.

    First off,

    This is my first post at this forum. Herro everyone!

    I'm generally able to Google my Excel questions and figure out how to do it, but I'm not sure what to even search for to figure this one out.

    I am looking for an excel function that [in a range] will display the first occurance of data in a range of data.

    I.e:

    Apple
    Apple
    Apple
    Apple
    Orange
    Orange
    Orange
    Apple
    Tomato
    Plum
    Plum
    Plum
    Tomato
    Orange

    I would like to see:

    Apple
    Orange
    Tomato
    Plum

    Is this an index function?

    Thanks in advance!

  2. #2
    Forum Guru sweep's Avatar
    Join Date
    04-03-2007
    Location
    Location: Location:
    MS-Off Ver
    XL2003 / 2007
    Posts
    2,448

    Re: Looking for Excel function that displays first occurrence of data in a range of d

    You can generate a unique list by advanced filtering. If you need a dynamic formula list this array in B2

    =IFERROR(INDEX(A1:A34,MATCH(0,COUNTIF($B$1:B1,A1:A34),0)),"")

    and copied over a range of cells will give a list of unique values. (Presuming your data is in A1:A34)

    Remember to enter an array with CTRL, SHIFT and ENTER
    Sarcasm - because beating the **** out of someone is illegal.

  3. #3
    Forum Guru zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    5,740

    Re: Looking for Excel function that displays first occurrence of data in a range of d

    It's slightly complicated that just INDEX

    Look here:
    Attached Files Attached Files
    "Relax. What is mind? No matter. What is matter? Never mind!"

  4. #4
    Registered User
    Join Date
    03-15-2010
    Location
    Atlanta
    MS-Off Ver
    Office 2007
    Posts
    3

    Thumbs up Re: Looking for Excel function that displays first occurrence of data in a range of d

    Quote Originally Posted by sweep View Post
    You can generate a unique list by advanced filtering. If you need a dynamic formula list this array in B2

    =IFERROR(INDEX(A1:A34,MATCH(0,COUNTIF($B$1:B1,A1:A34),0)),"")

    and copied over a range of cells will give a list of unique values. (Presuming your data is in A1:A34)

    Remember to enter an array with CTRL, SHIFT and ENTER
    Advanced Filtering was exactly what I needed.

    I couldn't get the formula you provided to do anything but display a 0.
    The formula evaluated down to =IFERROR("Apple","")

    edit: forgot to say Thanks!
    Last edited by Murq; 03-15-2010 at 10:55 AM. Reason: Thanks.

  5. #5
    Registered User
    Join Date
    03-15-2010
    Location
    Atlanta
    MS-Off Ver
    Office 2007
    Posts
    3

    Re: Looking for Excel function that displays first occurrence of data in a range of d

    Quote Originally Posted by zbor View Post
    It's slightly complicated that just INDEX

    Look here:
    This is great too! Thanks very much. Will study.

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