+ Reply to Thread
Results 1 to 5 of 5

Compare Columns & Highlight Unique Values

  1. #1
    Registered User
    Join Date
    01-18-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    5

    Question Compare Columns & Highlight Unique Values

    Good afternoon folks! I originally started a thread in another section regarding this topic. However, after banging my head against conditional formatting I am thinking a macro may be my best bet. Honestly, I hope I am right in that. I have a monthly report template that pulls in data from different sources. Column B lists the 2014 customer ids and column C lists the 2014 customer names while column F lists the 2015 customer ids and column G lists the 2015 customer names. The same people don't necessarily show in both. What I'd like is to compare B (2014 ids) to F (2015 ids) and C (2014 cusomters) to G (2015 customers) and highlight the new customers ids and names in F & G. Someone else runs this report so I'd like to do a macro as conditional formatting always seems like it is going to require manipulation each month. Any help would be so greatly appreciated as I think I've short circuited my brain on all this trying .


    ExcelHelpMacro.xlsx

  2. #2
    Registered User
    Join Date
    01-19-2015
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    59

    Re: Compare Columns & Highlight Unique Values

    Hello,

    I think I've found the solution using conditional formatting Please find the attached file below:

    ExcelHelpMacro_s2.xlsx

    If you need any explanation, please let me know.

    Regards,
    Alex
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-18-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    5

    Re: Compare Columns & Highlight Unique Values

    Good evening Rabbita! Thank you for the formula. I have some questions if you don't mind and I think this is where I get tripped up. This report is ran monthly by a staff member and honestly I like to try to avoid them having to edit any formulas and such. Is there a way I can say =ISERROR(VLOOKUP($F2,$B:$C,1,0)) and have this apply down to say cell 500 without it highlighting the empty cells? Knowing the data would never get to cell 500 but forcing them not to have to make adjustments. Is there a way to insert in the formula for it to only count cells with data? Its why I had kind of given up hope and thought I may have to seek assistance for some macro. I hope that isn't the case.

  4. #4
    Registered User
    Join Date
    01-19-2015
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    59

    Re: Compare Columns & Highlight Unique Values

    Please check the solution in the file below.

    ExcelHelpMacro_s2.xlsx

    I've changed a function in conditional formatting (COUNTIFS instead of VLOOKUP). I think it's better

    I hope this is what you are looking for.

    Regards,
    Alex

  5. #5
    Registered User
    Join Date
    01-18-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    5

    Re: Compare Columns & Highlight Unique Values

    Alex, I took a look at the Excel sheet you attached and it looks like that formula is highlighting the duplicate values. Ideally I was hoping to highlight the unique values. Any thoughts?

+ 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. [SOLVED] Compare table on 2 separate spreadsheets and highlight unique values
    By lashellr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2014, 01:50 PM
  2. [SOLVED] Compare 2 columns and make a third with unique values
    By danedw in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-11-2014, 11:14 PM
  3. Replies: 2
    Last Post: 06-13-2013, 03:09 AM
  4. Replies: 9
    Last Post: 04-18-2013, 03:54 PM
  5. [SOLVED] Compare 2 columns for unique values
    By Jim Gregg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-10-2006, 12:40 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