+ Reply to Thread
Results 1 to 6 of 6

compare 2 colomns and return fill red if is different

  1. #1
    Forum Contributor
    Join Date
    12-20-2014
    Location
    england
    MS-Off Ver
    2007
    Posts
    104

    compare 2 colomns and return fill red if is different

    hello i need your help



    i want to compare 2 colomns( A coulomn and B coulomn ) if data in coulomn B is different i want to change to red color


    tks

    compare.xlsx

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: compare 2 colomns and return fill red if is different

    Hello,

    One way to do it is :
    1. Select data
    2. Press F5, Click Special, Select "Row Differences" and OK
    3. Differences will be highlighted, select the red fill color
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: compare 2 colomns and return fill red if is different

    You can also do it with conditionnal formatting :

    1. From B1, select all column B (example B1:B5)
    2. Goto Conditionnal formatting, add new rule with formula
    3. Use this formula : =B1<>A1
    4. Select Red Fill color and press OK

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: compare 2 colomns and return fill red if is different

    With Conditional formatting

    =COUNTIF(A1:B5,B1)>1

    Highlight B1:B5 and go to:

    Conditional Formatting, New rule, Use Formula...
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Forum Contributor
    Join Date
    12-20-2014
    Location
    england
    MS-Off Ver
    2007
    Posts
    104

    Re: compare 2 colomns and return fill red if is different

    hello again
    i ask you a simple version for my problem but the problem is little more difficult
    i want to compare a list of coulomns A and B for example P.12242 with R1112242900 ; 12242 is commun number

    i develop a formula with =IF(MID(A15,3,5)<>MID(B15,4,5),1,2)
    but i dont now how i insert change color in it

    sorry and thanks for help me

    i presented a simple problem for i develop my abilities but it is little bit difficult
    compare2.xlsx

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: compare 2 colomns and return fill red if is different

    Perhaps this is what you want:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Here is you sample with the Conditional Formatting applied.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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: 5
    Last Post: 08-07-2014, 12:37 PM
  2. Compare diffrerent colomns based on one colomn
    By luckyvasul in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-31-2014, 03:46 AM
  3. Replies: 8
    Last Post: 05-16-2013, 05:28 PM
  4. Compare data in two colomns
    By luffield in forum Excel General
    Replies: 2
    Last Post: 10-23-2009, 09:13 AM
  5. Compare 2 text colomns and match rows depends by cell content
    By PRONET in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-31-2006, 11:58 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