+ Reply to Thread
Results 1 to 5 of 5

Compare two rows and find data that are different

  1. #1
    Registered User
    Join Date
    12-22-2015
    Location
    USA
    MS-Off Ver
    365
    Posts
    7

    Compare two rows and find data that are different

    Hello everyone,

    I have a set of User names one comes from an distribution list, and the other from active users list. What I am trying to accomplish is I want to search the entire column and compare it to the other column, and any information that does not match in any of the two (no matter what row it may be in) be shown whether it be highlighted or placed in a different column. Thanks in advance.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Compare two rows and find data that are different

    You can probably do this with Conditional Formatting. Assuming you have something like this...
    A
    B
    1
    aa bb
    2
    bb dd
    3
    cc ff
    4
    ee hh
    5
    dd jj
    6
    ff
    7
    gg


    1. highlight the range you want to apply the conditional formatting to (A1:A7)
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =match(A1,$B$1:$B$5,0) format FILL as needed

    1. highlight the range you want to apply the conditional formatting to (B1:B5)
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =match(B1,$A$1:$A$7,0) format FILL as needed
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    12-22-2015
    Location
    USA
    MS-Off Ver
    365
    Posts
    7

    Re: Compare two rows and find data that are different

    I might be missing something in the steps because its not really doing anything. This might be a rhetorical question but is the "format FILL as needed" part of the code, or are you just telling me to format the fill if it finds differences? Regardless i tried both and it does not do anything. I appreciate your help.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Compare two rows and find data that are different

    Sorry you could not get this to work.

    Did you follow my steps exactly (Im sure you did lol)
    The "format FILL as needed" is the formatting - text color/background color/font/etc" that you would apply to highlight the matches

    My sampl was very basic, you would need to adjust the ranges and references to suite your own data. If you uopload a clean sample workbook here, I can see whatr we need to do to get this working for you

  5. #5
    Registered User
    Join Date
    12-22-2015
    Location
    USA
    MS-Off Ver
    365
    Posts
    7

    Re: Compare two rows and find data that are different

    So just to reiterate, what I want is to check the whole list in both columns and any information that is not in both be highlighted.
    The list is much bigger like a few hundred more lol this is just an example I made i wouldn't bother for such a small list.
    Attached Files Attached Files

+ 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. Compare Sheets and find missing Rows
    By anandrajagopal in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-17-2015, 10:56 AM
  2. [SOLVED] Find Previous Year's Data and Compare to Input date DATA.
    By clemsoncooz in forum Excel General
    Replies: 4
    Last Post: 06-06-2014, 02:39 PM
  3. how to compare rows to find missing rows?
    By monkfunk in forum Excel General
    Replies: 14
    Last Post: 12-09-2013, 08:00 PM
  4. Macro To Find Rows With Duplicates, Compare Cells, And Delete Rows. - Excel
    By Kwame001 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-26-2013, 10:41 AM
  5. Compare and find differences between two rows of data
    By Lakeshow in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-28-2013, 12:18 PM
  6. Replies: 13
    Last Post: 08-23-2011, 11:00 AM
  7. compare and find added or deleted rows
    By helpwithXL in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-10-2005, 02:55 PM

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