Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default 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




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 430
Default 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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel: match two cells in one sheet to two cells in another and return a third cells value Spence Excel Worksheet Functions 3 February 13th 11 05:33 AM
If adjacent cells both contain a match from a list, they, and 2 more adj. cells are cLING Excel Worksheet Functions 0 January 5th 11 06:49 AM
join data in multiple cells when adjoining cells match criteria ?? angiec50 Excel Worksheet Functions 1 October 6th 09 10:27 AM
Match Dates in Two Cells and Ignore subsequent Cells Rob Excel Discussion (Misc queries) 1 April 21st 09 04:32 AM
Query counting cells in a row that exactly match cells in another Marlsnz Excel Discussion (Misc queries) 1 June 2nd 06 07:08 AM


All times are GMT +1. The time now is 12:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"