+ Reply to Thread
Results 1 to 10 of 10

Looking to Compare 2 Columns against another two columns to show duplicates / Differences

  1. #1
    Registered User
    Join Date
    01-13-2020
    Location
    Edinburgh
    MS-Off Ver
    Microsoft 2016
    Posts
    18

    Looking to Compare 2 Columns against another two columns to show duplicates / Differences

    Hi People,

    I am new to this Forum so firstly thank you in advance for anyone who reads this and provides any assistance or feed back.

    At work I have a list of staff members from 2016 and a more recent list of staff members for 2019.

    These lists are extremely large so i was looking for a formula which i can use to compare the two.

    I am more than happy to copy the 2016 list and 2019 lists into the same sheet however I am struggling to get a formula together which will compare two columns against another 2 columns.

    There are some entries with the same name so its important that i incorporate there telephone number which is in the next column along from their name.

    I have uploaded an example which may help anyone who is kind enough to assist me.

    Thanks you in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Looking to Compare 2 Columns against another two columns to show duplicates / Differen

    You should be able to just use MATCH() for this. For example, in M10 I used the following formula:

    Please Login or Register  to view this content.
    Copying this down to M11:M21 then tells me if the staff member is "New" or "Old" (i.e. existed in 2016). You could do the same for the other list to list out "Still Here" and "Left" for example. Does that help?

    WBD
    Office 365 on Windows 11, looking for rep!

  3. #3
    Registered User
    Join Date
    01-13-2020
    Location
    Edinburgh
    MS-Off Ver
    Microsoft 2016
    Posts
    18

    Re: Looking to Compare 2 Columns against another two columns to show duplicates / Differen

    Hello WildeBoyDixon,

    Thank you so much for your advice.

    I have tried entering that formula into the column you advised however it comes back saying that every member is new however some aren't new in comparison to the existing list.

    Thanks once again.

    Zeus82

  4. #4
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Looking to Compare 2 Columns against another two columns to show duplicates / Differen

    Hmm. See attached?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-13-2020
    Location
    Edinburgh
    MS-Off Ver
    Microsoft 2016
    Posts
    18

    Re: Looking to Compare 2 Columns against another two columns to show duplicates / Differen

    HI WBD,

    It will be something That I am doing wrong however please see attached.

    Kind regards,

    Zeua82
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Looking to Compare 2 Columns against another two columns to show duplicates / Differen

    How about
    =IF(IFERROR(MATCH($K10&"|"&$L10,INDEX($E$10:$E$18&"|"&$F$10:$F$18,0),0)*0,1),"New","Old")

  7. #7
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Looking to Compare 2 Columns against another two columns to show duplicates / Differen

    Quote Originally Posted by Zeus82 View Post
    HI WBD,

    It will be something That I am doing wrong however please see attached.

    Kind regards,

    Zeua82
    You have "-0" instead of "=0" in your formula and there's a couple of rogue "@" in there that I don't think are helping.

    WBD
    Last edited by WideBoyDixon; 01-13-2020 at 09:57 AM.

  8. #8
    Registered User
    Join Date
    01-13-2020
    Location
    Edinburgh
    MS-Off Ver
    Microsoft 2016
    Posts
    18

    Re: Looking to Compare 2 Columns against another two columns to show duplicates / Differen

    HI WBD,

    Thanks a million for your help, that last formula i managed to get working however yes I see my mistake in the previous.

    I was transferring the formula over to the actual employee sheet which has many more details which is clearly when I have added the typos.

    Thanks a million.

    All I need now is a formula to reverse a date as the dates are written as 20180122 rather than 22012018 or even better still 22/01/2018. I will create a new thread and marked this one as solved.

    Thanks a million for your assistance.

    Kindest of regards,

    Zeus82

  9. #9
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Looking to Compare 2 Columns against another two columns to show duplicates / Differen

    Please Login or Register  to view this content.
    Replace A1 with the appropriate cell reference.

    WBD

  10. #10
    Registered User
    Join Date
    01-13-2020
    Location
    Edinburgh
    MS-Off Ver
    Microsoft 2016
    Posts
    18

    Re: Looking to Compare 2 Columns against another two columns to show duplicates / Differen

    Wow haha Perfect!

    I really hope I can help you sometime!

    Thanks again!

    Zeus82

+ 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: 2
    Last Post: 11-27-2016, 05:56 PM
  2. [SOLVED] Compare data in Columns A & B - Show differences in Columns C & D
    By syncguy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-17-2015, 09:59 PM
  3. Compare 2 columns and remove duplicates in both columns when found
    By 1dtms in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-11-2013, 02:19 AM
  4. [SOLVED] Macro to Compare Columns A & B and dispaly any duplicates in Columns C & D
    By robertguy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-12-2013, 02:24 AM
  5. [SOLVED] How do I compare 2 text columns & show differences in 3rd?
    By Kelli Freeman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-28-2005, 08:45 PM
  6. [SOLVED] Compare 2 columns to see differences
    By Bugaglugs in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  7. Compare 2 columns to see differences
    By Bugaglugs in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM

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