+ Reply to Thread
Results 1 to 16 of 16

Formula for finding unique data for lists

  1. #1
    Registered User
    Join Date
    06-24-2014
    Location
    Ontario, CA
    MS-Off Ver
    2010
    Posts
    45

    Formula for finding unique data for lists

    hi,

    so I am basically trying to find the differences for two (large) lists and I can't figure out the formula. I am trying to get unique values for both lists (comparing them left to right and right to left ) and just have the results of the unique values in another column.
    I tried using this formula =IF(ISNA(VLOOKUP(B:B,$B$2:$B$778113,1,FALSE)),A2) but I am just getting an out value of FALSE. I tried messing with it and I just can't find info on it.

    Does anyone know how I should have it or where I can find info on it? Thanks.

  2. #2
    Forum Contributor prabhuduraraj09's Avatar
    Join Date
    05-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    330

    Re: Formula for finding unique data for lists

    Hi alcorp,

    could you please give me sample input, not the whole data but just 2 or 3 input for me to give a try.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Formula for finding unique data for lists

    Unique or distinct values?

  4. #4
    Registered User
    Join Date
    07-03-2013
    Location
    Montreal, QC
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Formula for finding unique data for lists

    I sometimes use COUNTIF() for this. You set it to search a value from LIST1 in LIST2. If it finds a match you get a value other then zero.

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Formula for finding unique data for lists

    Please find the attached sheet to see if this is what you are trying to achieve.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  6. #6
    Registered User
    Join Date
    06-24-2014
    Location
    Ontario, CA
    MS-Off Ver
    2010
    Posts
    45

    Re: Formula for finding unique data for lists

    Book2.xlsx

    Here is a basic file of what I am trying to do.

  7. #7
    Registered User
    Join Date
    06-24-2014
    Location
    Ontario, CA
    MS-Off Ver
    2010
    Posts
    45

    Re: Formula for finding unique data for lists

    oh that works really good too but i need it in a combined list

  8. #8
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Formula for finding unique data for lists

    Try this Array Formula in E2. Since this is an array formula so you need to confirm it with Ctrl+Shift+Enter instead of just Enter. (i.e. after pasting the formula in the formula cell, hold down the Ctrl+Shift and then press Enter)

    In E2
    Please Login or Register  to view this content.
    and copy down until you get blank cells.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    06-24-2014
    Location
    Ontario, CA
    MS-Off Ver
    2010
    Posts
    45

    Re: Formula for finding unique data for lists

    I tired using this and it was only one way. I need to have it where if LIST A has a 10 and LIST BE doesn't have it then it will show unique value of 10
    and same goes the other way around. If LIST B has a 12, and LIST A doesn't have the 12 then it should show up on the unique value list with the 12 so the list would be 10 and 12

  10. #10
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Formula for finding unique data for lists

    Try this Array Formula. (CSE confirmed)
    Please Login or Register  to view this content.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    06-24-2014
    Location
    Ontario, CA
    MS-Off Ver
    2010
    Posts
    45

    Re: Formula for finding unique data for lists

    I tried using your formula but I am still having issues. I am comparing 778,112 rows and I don't know if that makes a difference. I was trying to break down the formula and I am confused on why there is the E column if I am just comparing column A and Column B and presenting the results in the C column.

  12. #12
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Formula for finding unique data for lists

    See the attached sheet in post#10. Where is the column E?

  13. #13
    Registered User
    Join Date
    06-24-2014
    Location
    Ontario, CA
    MS-Off Ver
    2010
    Posts
    45

    Re: Formula for finding unique data for lists

    Okay I tried using the formula and I am still having issues. In the formula it uses the E collumn but I am lost on that.

    I uploaded a sample of the data I am using but the acutal one goes down to 778,112 rows which is too large to upload.

    One of things I change when I use your formula is is changing the value 6(assuming that's where the end of checking is) to 778,112 and that's it. online example.xlsx
    s

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

    Re: Formula for finding unique data for lists

    Here is the ARRAY formula (Enter with Ctrl + Shift + Enter) with the minor corrections for entry into column C

    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

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

    Re: Formula for finding unique data for lists

    I hope that you have some "serious" computing power because this is going to take a while to process with nearly 800,000 rows.

  16. #16
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Formula for finding unique data for lists

    There are two issues with the file you attached in the post#13.
    1). The formula I suggested is an array formula so you need to confirm it with Ctrl+Shift+Enter not just Enter. (i.e. after pasting the formula in the cell, press F2, hold down the Ctrl+Shift and then press Enter.). When an array formula is entered correctly, you will notice in the formula bar that the formula gets surrounded by the Curly Brackets {}. And if you don't see the curly brackets in the formula bar, repeat the process to enter it correctly by pressing F2 (Function Key) and holding down the Ctrl+Shif together and pressing Enter then.

    2). The numbers in column A are numbers stored as Text (not real numbers), while the numbers in col. B are real numbers. You need to take care of this. Here is the modified formula. Notice in the formula I have used $A$2:$A$30*1 rather than $A$2:$A$30 only, because multiplying $A$2:$A$30 by 1 makes $A$2:$A$30 the real numbers.

    Please Login or Register  to view this content.
    Is this what you are trying to achieve?
    Attached Files Attached Files

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

    Re: Formula for finding unique data for lists

    Just for "kicks" I added 2 helper columns and a 3rh column with a non-array formula to find the unique values. Maybe a solution like this could work for you. I don't know what the comparative speed of calculation is.
    Attached Files Attached Files

+ 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. Dynamic / Unique Data Validation Lists
    By Thomo88 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-31-2014, 11:28 AM
  2. Replies: 7
    Last Post: 03-30-2012, 06:38 PM
  3. MultiLookup + Unique + Sorted Lists in a Drop-Down in the most faster formula
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-09-2012, 01:03 PM
  4. Formula needed for finding unique values
    By mflynn in forum Excel General
    Replies: 2
    Last Post: 04-07-2010, 05:14 PM
  5. Finding unique names when comparing two lists
    By Fcroft in forum Excel General
    Replies: 2
    Last Post: 01-25-2010, 12:10 PM

Tags for this Thread

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