+ Reply to Thread
Results 1 to 7 of 7

Compare Column and highlight difference

  1. #1
    Forum Contributor
    Join Date
    11-12-2012
    Location
    Jeddah, Saudi Arabia
    MS-Off Ver
    2010, 2013, 2016, Office 365
    Posts
    507

    Compare Column and highlight difference

    Hi,

    I need to check Columns B to F with Columns I to M and if there is difference highlight both the cell. Can anyone help me to find a solution.

    Regards,
    Attached Files Attached Files

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Compare Column and highlight difference

    You can use Conditional Formatting with two rules

    Conditional Formatting
    • Highlight applicable range >> $B$9:$F$116
    • Home Tab >> Styles >> Conditional Formatting >> New Rule
    • Select a Rule Type: Use a formula to determine which cells to format
    • Edit the Rule Description: Format values where this formula is true: =B9<>I9
    • Format… [Number, Font, Border, Fill] Select Fill >> Red
    • OK >> OK

    • Highlight applicable range >> $I$9:$M$116
    • Home Tab >> Styles >> Conditional Formatting >> New Rule
    • Select a Rule Type: Use a formula to determine which cells to format
    • Edit the Rule Description: Format values where this formula is true: =I9<>B9
    • Format… [Number, Font, Border, Fill] Select Fill >> Red
    • OK >> OK
    Last edited by jeffreybrown; 05-29-2017 at 08:56 AM.
    HTH
    Regards, Jeff

  3. #3
    Forum Contributor
    Join Date
    11-12-2012
    Location
    Jeddah, Saudi Arabia
    MS-Off Ver
    2010, 2013, 2016, Office 365
    Posts
    507

    Re: Compare Column and highlight difference

    Hi,

    thanks, the data provided is just a sample, the original data exceeds more than 10 k. I would prefer a vba solution.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Compare Column and highlight difference

    Try...

    Please Login or Register  to view this content.
    Last edited by jeffreybrown; 05-29-2017 at 10:24 AM.

  5. #5
    Forum Contributor
    Join Date
    11-12-2012
    Location
    Jeddah, Saudi Arabia
    MS-Off Ver
    2010, 2013, 2016, Office 365
    Posts
    507
    jeffreybrown,

    Thanks for the code, I will check and get back to you tomorrow. I am out of office.
    Last edited by jeffreybrown; 05-29-2017 at 11:06 AM. Reason: Removed full quote as it's just clutter

  6. #6
    Forum Contributor
    Join Date
    11-12-2012
    Location
    Jeddah, Saudi Arabia
    MS-Off Ver
    2010, 2013, 2016, Office 365
    Posts
    507

    Re: Compare Column and highlight difference

    Thanks Jeffrey, I have checked the code and it's exactly what I expected.

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Compare Column and highlight difference

    You are very welcome. Happy to help.

+ 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 2 columns with 1 column and highlight difference
    By pradeepdeepu_001 in forum Excel General
    Replies: 3
    Last Post: 12-15-2016, 02:11 AM
  2. vba macros to compare 2 worksheets and highlight the difference
    By hecgroups in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-13-2015, 11:16 AM
  3. Compare Two Columns and Highlight the Difference
    By VickyVykciV in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-25-2014, 01:21 AM
  4. Replies: 2
    Last Post: 04-12-2013, 06:20 PM
  5. Replies: 5
    Last Post: 01-06-2012, 04:15 AM
  6. [SOLVED] Compare strings in cells and highlight difference
    By Odin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2006, 05:20 AM
  7. RE: How do you compare 2 list of numbers and highlight the difference
    By Tom Ogilvy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2006, 10:55 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