ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Two cells if no match (https://www.excelbanter.com/excel-programming/343536-two-cells-if-no-match.html)

Bill[_33_]

Two cells if no match
 
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.

Norman Jones

Two cells if no match
 
Hi Bill,

ghvf aaaa No Match "yellow"
vnmb wwww No Match "Blue"


In the case of no match, how is the choice between yellow and blue to be
determined?

---
Regards,
Norman



"Bill" wrote in message ...
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





Jim May

Two cells if no match
 
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



"Bill" wrote in message ...
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






All times are GMT +1. The time now is 09:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com