+ Reply to Thread
Results 1 to 4 of 4

How to compare two columns and print the difference in third column

  1. #1
    Registered User
    Join Date
    12-04-2011
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    3

    How to compare two columns and print the difference in third column

    Hi Everyone,

    I need to compare two two columns in a excel and i want values present in column1 and not in column2.
    There are alot of data that i need to sort so i can't do it manually, it will be very time consuming.Help from anyone will be highly appreciated.
    EX.


    column1 column2
    Adam Boehm Adam Boehm
    Adam S Henry Adamali A Merchant
    Aditya P Ingale Adam S Henry
    Adamali A Merchant

    I have data in this format. I want to compare the columns and print data that is present in column1 and not in column2. column3 should have.

    column3
    Aditya P Ingale


    Thanks in advance.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to compare two columns and print the difference in third column

    Assuming you have the data in column A and column B, use following forumula:-

    =IF(ISERROR(MATCH(A4,B:B,0)),A4,"")

    Above will print the data which is there in Column A but not in Column B.

    Let me know if this helps.

    Cheers

    Thanks,
    DILIPandey
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    12-04-2011
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: How to compare two columns and print the difference in third column

    Thanks alot DILIPandey. It worked like magic. Many Many thanks to you

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to compare two columns and print the difference in third column

    You are welcome...!!

+ 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