+ Reply to Thread
Results 1 to 3 of 3

Pulling Unique Data from a List

  1. #1
    Forum Contributor
    Join Date
    12-06-2005
    Posts
    118

    Pulling Unique Data from a List

    If I have a list of cities and I only want to return each city once, is there a formula I can use? For example, say I have a list like this:

    Atlanta
    Austin
    Austin
    Austin
    Bakersfield
    Baltimore
    Baltimore
    Baltimore
    Boston
    Boston
    Boston
    Chicago
    Chicago

    Is there a formula that will only pull Atlanta, Austin, Bakersfield, etc and list them down the rows like that? I would then do a sumif to get the numerical data I need. Is this possible?


    Thanks.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try

    Enter with Ctrl + Shift + Enter

    =INDEX($A$1:$A$13,SMALL(IF(ROW($A$1:$A$13)=MATCH($A$1:$A$13,$A$1:$A$13,0),ROW($A$1:$A$13)),ROW()))
    or use advance filter

    http://www.contextures.com/xladvfilter01.html#FilterUR

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Put a header at the top of the data with different formatting, select the range, do Data > Advanced Filter, and select Unique records only. Then copy the data someplace else, and duplicates will be gone.

    Or, you can start someplace else, then do the same thing, and reference the data source back to the orginal range.

+ 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