+ Reply to Thread
Results 1 to 4 of 4

Compare two columns of text

  1. #1
    Registered User
    Join Date
    10-08-2011
    Location
    Oslo
    MS-Off Ver
    Excel 2007
    Posts
    35

    Compare two columns of text

    Hi Guys,

    I am really struggling with a problem and hope someone out there will be able to help me.

    I have a worksheet containing two columns with approx. 1000 company names on each column.

    Example:

    Column 1

    facebook
    apple
    jp morgan
    etc

    I have one more column to the right of column 1 named column 2

    I need to compare the two rows so I can eliminate the names on column 1 that duplicates with column 2

    So when I am done I can see which companies that exist in column 1, and not in column 2.

    I appreciate all the help I can get

    Many many thanks!

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Compare two columns of text

    Try this in column C (I'll assume you're using A:B)

    in C2: =IF(COUNTIF(B:B,A2),"",A2)

    and drag down as far as you need

    Column C will show the values from column A that are not in column B

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

    Re: Compare two columns of text

    Hi RKP,

    Find the attached where I've done what I think you want. I've used stock symbols from different accounts. See the attached and the formula in it.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

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

    Re: Compare two columns of text

    I like Cutter's answer better than mine. Try it on my workbook and see which works for you.

+ 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