I have data in the A
and B
column. B
column's data is mostly duplicates of A
's data, but not always. For example:
A
Budapest
Prague
Paris
Bukarest
Moscow
Rome
New York
B
Budapest
Prague
Los Angeles
Bukarest
I need to search the A
column if the values in B
exists there. If a row matches, I need to change the row's background colour in A
to red or something.
What function do I need to use, and how?
Sorry, I'm a newbie in Excel.
All you need to do for that is a simple loop.
This doesn't handle testing for lower case, upper-case mismatch. If this isn't exactly what you are looking for, comment, and I can revise.
If you are planning to learn VBA. This is a great start.
TESTED:
Another simpler solution is to use this formula in the conditional formatting (apply to column A):
Regards!
No formulas required. This works on as many columns as you need, but will only compare columns in the same worksheet:
Duplicates are now highlighted in red
Here is the formula
create a new rule in conditional formating based on a formula. Use the following formula and apply it to $A:$A
here is the example sheet to download if you encounter problems
UPDATE
here is @pnuts's suggestion which works perfect as well: