Link to home
Start Free TrialLog in
Avatar of VBdotnet2005
VBdotnet2005Flag for United States of America

asked on

Excel - compare columns

In Excel, is there a way to compare column A and B and highlight if the different?

sample

accountnumber_A      accountnumber_B

12345                         11111
7890                           22222
2222                           12345
etc
ASKER CERTIFIED SOLUTION
Avatar of Steve
Steve
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Do you want to compare row by row or compare a value in one column against any value in the other?

If it's the former you can just use

=A2=B2

or to compare A2 against any value in column B

=COUNTIF(B:B,A2)>0

You can use either formula on the worksheet and copy down the columns......or use within conditional formatting to format the relevant cells as required

regards, barry