Two cells if no match

B

Bill

Hi,

I have about 10 thousand records. There are two columns that need to
compare each rows.

I need a code to run macro automaticly on Excel to check two columns for
each records and set four colors in each rows based on Column A and Column
B.

For example:

Column A Column B Comments
qwer qwer Match "no colour"
ghvf aaaa No Match "yellow"
vnmb wwww No Match "Blue"
Blank bbbb No information on Column
A "light grey"
mmmm blank No information on Column B
"green"

Your help would be much appreciated.
Thanks
 
J

Jim May

In C1 enter (and copy down)

=IF(EXACT(B1,A1),"Match",IF(ISBLANK(A1),"No Information in Column
A",IF(ISBLANK(B1),"No Information in Column B","No Match")))

Only 3 Conditional formats are required

Use Cell Value is Equal to
="No Match"

Add 2, and 3

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top