+ Reply to Thread
Results 1 to 5 of 5

comparing two columns with multiple entries

  1. #1
    Registered User
    Join Date
    04-17-2020
    Location
    Pittsburgh
    MS-Off Ver
    2013
    Posts
    3

    comparing two columns with multiple entries

    Hello guys,

    how to compare these two columns and find the difference in the number of new entries, meaning to find out that there is 1 "11" entry more and 2 more and 2 "13" entries more in column B, compared to column A. I know that finding duplicates does not work neither the way of finding duplicates using countif function (at least not the one I know about) since we have here duplicates within the same column as well as in both columns.

    A B
    11 11
    11 11
    11 11
    12 11
    12 12
    13 12
    13 13
    14 13
    13
    13
    14

    Thanks you very much for your time.
    PS. sorry, it seems that the data within columns got disarranged whenever I post, but I hope you can get the point of my question.

    Batta

  2. #2
    Valued Forum Contributor
    Join Date
    01-14-2013
    Location
    Austria
    MS-Off Ver
    2016 / 2019
    Posts
    339

    Re: comparing two columns with multiple entries

    you need a list of unique values.
    then you can use countif(..columnA..) - countif(..columnB..) for each unique value

  3. #3
    Registered User
    Join Date
    04-17-2020
    Location
    Pittsburgh
    MS-Off Ver
    2013
    Posts
    3

    Re: comparing two columns with multiple entries

    Thanks but I don't think that would work, since there are no unique values here, but point is to count newly added (the same) values. Sorry, I have noticed now that the data set I submitted was rearranged: So there as not unique values, just the number of of values is different in columns A and B
    Last edited by Batta2021; 04-17-2020 at 12:26 PM.

  4. #4
    Valued Forum Contributor
    Join Date
    01-14-2013
    Location
    Austria
    MS-Off Ver
    2016 / 2019
    Posts
    339

    Re: comparing two columns with multiple entries

    according your sample you have following unique items: 11, 12, 13, 14 (derived from values in A)

    see attachment

    if you use named ranges or even better a table then the formula for unique values need not be adopted
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-17-2020
    Location
    Pittsburgh
    MS-Off Ver
    2013
    Posts
    3

    Re: comparing two columns with multiple entries

    Thank you very much for your time, this should work for me perfectly,

    Sincerely
    Batta

+ 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: 4
    Last Post: 04-25-2019, 05:28 AM
  2. Comparing Multiple Columns and Returning List of Entries Not Found
    By Boudreau in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-18-2015, 11:48 PM
  3. Find Missing Entries when comparing two columns
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-31-2013, 12:35 AM
  4. Replies: 0
    Last Post: 08-14-2012, 01:18 PM
  5. Comparing 4 columns and displaying duplicate entries
    By Tonx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2012, 03:26 AM
  6. Lookup Data in One Column, Find Multiple Entries in Next, Copy to Multiple Columns
    By nzxt1234 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-16-2010, 01:17 AM
  7. Replies: 5
    Last Post: 06-18-2009, 09:08 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