+ Reply to Thread
Results 1 to 4 of 4

Pull Unique Values from Column

  1. #1
    Registered User
    Join Date
    12-09-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    28

    Pull Unique Values from Column

    I have a list of numbers in A2:A4000, and these numbers all have duplicates.

    What are your thoughts on an array formula that I can place in column B that looks at column A and returns each value found in Column A once?

    For example, if I have 1, 1, 1, 2, 3, 4, 5, 5, 5 in column A, Column B would return 1, 2, 3, 4, 5.

    I've tried using the below code, and it was able to return some unique values, but it doesn't pull all of them.

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Pull Unique Values from Column

    You don't need an array formula with CSE. Try this in B2:

    =INDEX($A$1:$A$4000,MATCH(0,INDEX(COUNTIF($B$1:B1,$A$1:$A$4000),0,0),0))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-09-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Pull Unique Values from Column

    Thank worked perfectly.
    Thanks Ali!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Pull Unique Values from Column

    You're welcome!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. pull out 1 example of unique occurrences in a column...
    By wesrockin in forum Excel General
    Replies: 6
    Last Post: 09-15-2015, 09:28 AM
  2. Replies: 2
    Last Post: 08-19-2015, 10:22 AM
  3. Using Index-Match to pull non-unique values
    By acsherman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-22-2013, 04:08 PM
  4. Replies: 5
    Last Post: 01-11-2013, 04:22 PM
  5. [SOLVED] Pull unique values from column without duplicates and export to another sheet
    By vandetta in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-02-2013, 10:35 PM
  6. Pull unique values based on adjacent column
    By freud1 in forum Excel General
    Replies: 9
    Last Post: 07-02-2012, 11:36 AM
  7. Function that will pull the unique values out of a column?
    By Rgaherty in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-13-2007, 09:06 AM

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