• Select distinct entries from a list (2000 SR 1)

    Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Select distinct entries from a list (2000 SR 1)

    • This topic has 5 replies, 5 voices, and was last updated 23 years ago.
    Author
    Topic
    #368000

    I have a column with 1000 rows and I want a list of distinct values. Any ideas of the best way to do this?

    For example

    the list:
    fred
    john
    fred
    james
    sue
    sue
    jane

    distinct list:
    fred
    john
    james
    sue
    jane

    I am doing this too often to import into access and use Select Distinct query.

    Viewing 3 reply threads
    Author
    Replies
    • #575478

      Here’s a link to Chip Pearsons Site decribing how to do this:

      Extracting Unique Entries

    • #575481

      The code in This Post will delete all rows that have duplicates in column A. Is that what you want to do, or do you want some kind of separate list.

    • #575484

      Make a pivot table. Use “the list:” as the row source and “Count of the list:” as the data field. Leave the column source blank.

    • #575485

      Thanks for the reponse guys, the link to http://www.cpearson.com/excel/duplicat.htm has got me close enough.

      I wonder can anyone combine the “extracting unique entries” and “eliminating blank cells” formula on these pages into a function that would do exactly what I am after.

      thanks

      • #575597

        If you really mean that you want a function, then your answer is on John Walkenbach’s tips. You would just need an IF statement in the code to skip over blank cells.

        You can do this manually with the Data | Advanced Filter | Unique Records only. Microsoft has an example. HTH –Sam

    Viewing 3 reply threads
    Reply To: Select distinct entries from a list (2000 SR 1)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: