+ Reply to Thread
Results 1 to 11 of 11

Creating a list of just unique values

  1. #1
    Registered User
    Join Date
    03-22-2013
    Location
    Newmarket, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    10

    Creating a list of just unique values

    Hi all, I am using Excel 2010. I have 2 columns that I want to compare data against each other, and I would like to make a list that returns JUST the unique values. I have roughly 65,000 lines of data, and in each column I might have 4 unique values, I would like to see these values without having to sift through 65,000 lines.

    Any thoughts?

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Creating a list of just unique values

    Hi washout and welcome to the forum,

    Excel has an Advanced Filter function with a "Unique" values check box. I think this is what you want but would need to see a sample of your data to be sure.

    See http://office.microsoft.com/en-us/ex...010073943.aspx for the built in function.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    03-22-2013
    Location
    Newmarket, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Creating a list of just unique values

    Thanks for the welcome! I am aware of that function, but what that does is removes duplicates and writes a list with all the data, I just want to see which results when comparing each column come back unique.

    attached is a file that is a basic example of what I want to see. The unique value from column A when compared to column B is 16, and the unique value of column B when compared to column A is 15.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-14-2012
    Location
    India
    MS-Off Ver
    Excell 2010
    Posts
    22

    Re: Creating a list of just unique values

    Try this :
    Select both A and B
    Home->Conditional Formatting->Highlight Cells Rules->Duplicate Values.

    Select Unique values from drop down, so that Unique values from both the cells are highlighted.

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Creating a list of just unique values

    Hi,

    Here is the workbook using Washout's answer.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-22-2013
    Location
    Newmarket, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Creating a list of just unique values

    Unfortunately that wouldnt work either as there is 65,000 lines of data to search through to find maybe 4 unique values. It would be a long process to look through all that to find just 4 cells that arent highlighted.

  7. #7
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Creating a list of just unique values

    OK washout,

    Try this. Create a formula in a column C and then sort by False or True. See the attached. That will bring to the top the False values. Does that do what you need?
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    05-18-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Creating a list of just unique values

    CF Washout Answer 2.xls

    If you set the MarvinP's conditional formatting to unique, and apply a filter, you could filter by color for each column

  9. #9
    Registered User
    Join Date
    03-22-2013
    Location
    Newmarket, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Creating a list of just unique values

    hmm that might do the trick, only issue is that one column may have more values than the other, so somewhere down the list column A wont match column B, so as soon as you find your first FALSE value, everything after that will be false...

    Maybe using a countif formula formula that searches an entire column based on a value of the other column, and returns the value as true or false.

  10. #10
    Registered User
    Join Date
    03-22-2013
    Location
    Newmarket, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Creating a list of just unique values

    Solved! So you do a Countif, Range is the entire column A, criteria is B2, copy the formula down, then sort numerically, the 0s will come to the top!

    Thanks for the help, cant believe I didn't see this!

    CF Washout Answer 3.xls

  11. #11
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Creating a list of just unique values

    If the columns are A and B enter this formula in column C and copy down the length of your data. Then, sort all the zeros to the top

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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