+ Reply to Thread
Results 1 to 4 of 4

Comparing all the data between two columns

  1. #1
    Registered User
    Join Date
    08-28-2020
    Location
    India
    MS-Off Ver
    Office365
    Posts
    1

    Comparing all the data between two columns

    How do I compare all the fields between two columns and get only the the unique values among them.
    I am attaching part of the data.
    One column has dates that the second column does not. I have to find out the dates that are not in column 1 and put it in say column C and the dates that are in column B and not in column A put them in column D.
    Is there a function which I can use to achieve this result?
    Attached Files Attached Files
    Last edited by excelnoobforever; 08-28-2020 at 09:05 AM. Reason: Type

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Comparing all the data between two columns

    You could use formulas like
    In C2: =IF(COUNTIF(B:B,A2)>0,"",A2)
    In D2: =IF(COUNTIF(A:A,B2)>0,"",B2)
    Then drag them down the column as far as needed.
    Last edited by JLGWhiz; 08-28-2020 at 11:38 AM.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    47,487

    Re: Comparing all the data between two columns

    What did you try to do in post #2? Looks like the forum can't handle the code.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  4. #4
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Comparing all the data between two columns

    Quote Originally Posted by AliGW View Post
    What did you try to do in post #2? Looks like the forum can't handle the code.
    Fogrot which forum I was posting to. Senility!!

+ 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. Replies: 1
    Last Post: 11-09-2018, 04:40 PM
  2. Replies: 7
    Last Post: 02-05-2015, 03:20 PM
  3. Replies: 3
    Last Post: 07-21-2014, 01:34 PM
  4. Replies: 14
    Last Post: 08-22-2013, 09:30 AM
  5. [SOLVED] combine many columns data into half columns data by creating rows
    By killerware in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-08-2013, 07:53 AM
  6. Duplicate rows, delete columns w/same data, combine columns w/unique data, Mac Excel 2011
    By msmcoin in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 02-03-2013, 02: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