Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Conditional Formatting Using VB

I need to check the value of a cell against another
worksheet. If a matching value exists in both sheets then
I apply the new format (I would use a vlookup
functionality as the sheet I am comparing to has the data
in a single column). If a match does not exist, then I
leave the format the same. I could not achieve this using
the conditional formatting. Any ideas would be greatly
appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Conditional Formatting Using VB

Bill,

Select the cells on sheet one, and apply conditional formatting with a
formula of

=NOT(ISNA(MATCH(A1,myRange,0)))

where myRange is a range name for the cells on the other sheet. Format to
suit.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Bill Phillips" wrote in message
...
I need to check the value of a cell against another
worksheet. If a matching value exists in both sheets then
I apply the new format (I would use a vlookup
functionality as the sheet I am comparing to has the data
in a single column). If a match does not exist, then I
leave the format the same. I could not achieve this using
the conditional formatting. Any ideas would be greatly
appreciated.



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
Conditional formatting--different formatting depending on cell con Tammy S. Excel Discussion (Misc queries) 3 March 30th 09 08:11 PM
Formatting Conditional Formatting Icon Sets The Rook[_2_] Excel Discussion (Misc queries) 3 March 7th 09 08:48 PM
Formatting cells in a column with conditional formatting? shamor Excel Discussion (Misc queries) 8 May 19th 08 10:11 PM
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM


All times are GMT +1. The time now is 05:39 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"