+ Reply to Thread
Results 1 to 7 of 7

Comparing columns to eliminate same data

  1. #1
    Registered User
    Join Date
    02-17-2010
    Location
    NYC
    MS-Off Ver
    Excel 2003
    Posts
    3

    Comparing columns to eliminate same data

    I need to compare 2 columns in excel with numerical data to remove all doubles

    Is there a formula to do that? My columns have about 60,000 lines each

    Thank you

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Comparing columns to eliminate same data

    Can you elaborate further?

    Compare column A to column B. All items in column A that are also in column B are:
    1) deleted in both columns
    2) deleted in column A
    3) deleted in column B
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-17-2010
    Location
    NYC
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Comparing columns to eliminate same data

    Oh sorry...
    I have column A with about 15,000 lines of numerical digits in it (6 digits per cell)
    I have column B with about 60,000 lines of numerical digits in it (6 digits per cell)

    99% of numbers in Column A appear in Column B. I need to see which of Column A dont appera in Column B (that 1%)

    Ultimately, I just want to see the numbers that are in A (shorter column) that are not in B.

    Hope this clarifies it a bit

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Comparing columns to eliminate same data

    See them where? I gave you a list of options to choose from. Select one or specifically stipulate what you want to happen...exactly what and where.

    Is there titles in row1 and the data starts at row2? Can you add titles if they're missing? The AutoFilter may be the ticket here.
    Last edited by JBeaucaire; 02-17-2010 at 04:56 PM.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Comparing columns to eliminate same data

    1) Insert a row at the top and put titles above your columns
    2) Highlight column A and select Insert > Column
    3) In A1 put "Key"
    4) In A2 put this formula:

    =ISNUMBER(MATCH(B2,C:C,0))

    5) Select cell A1
    6) Select Data > Filter > Autofilter
    7) Filter column A by the value FALSE

    You're now looking at all the values in column B that are NOT in column C. Copy the values elsewhere if you wish, then turn off the Autofilter and/or delete the column A you added.

  6. #6
    Registered User
    Join Date
    02-17-2010
    Location
    NYC
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Comparing columns to eliminate same data

    Thank you sooooooooooooo much!!!!!
    I'm sorry if I was unclear. I've never done something like this before and only know the simple formulas.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Comparing columns to eliminate same data

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].

+ 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