Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
khw khw is offline
external usenet poster
 
Posts: 3
Default Conditional Format with Name Range?

I have the following that I would like to do.

There are two separate worksheets within a workbook: worksheet 1 and
worksheet2.
On worksheet2 I would like to highlight the cell if it does not match up
with a particular cell on worksheet1.
On both worksheet 1 I have named some name ranges: CurrentName.
So on worksheet2 in cell A1 I have gone to the conditional format window and
input the following data: Cell value is, not equal to,
="Indirect(CurrentName&Row())".
But this doesn't seem to distinguish what I really want to accomplish. If I
change the "not equal to" to "equal to" it does the opposite (highlight
versus not highlighted) for all the cells.
I have just copied the format down to the other cells, but all yield the
same results which is not correct.
Is what I'm trying to do possible? If so, do you have any suggestions on how
to accomplish this?
Thank you in advance!!
-Kyrsten
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Conditional Format with Name Range?

I'm not really sure what you're trying to check & CF
Maybe something along these lines ...

In Sheet1 you have a named range: CurrentName
Then in Sheet2,
You have data in A2 down which you want to check vs CurrentName & CF

1. If your intent is to CF those names which are found in CurrentName
Select A2:A100 (with A2 active), then apply CF using "Formula is"
=COUNTIF(CurrentName,A2)
Format to taste, OK out

If your intent is to CF those names in A2 down which are NOT found in
CurrentName
Select A2:A100 (with A2 active), then apply CF using "Formula is"
=AND(NOT(COUNTIF(CurrentName,A2)),A2<"")
Format to taste, OK out
Success? hit the YES below
--
Max
Singapore
---
"KHW" wrote:
I have the following that I would like to do.

There are two separate worksheets within a workbook: worksheet 1 and
worksheet2.
On worksheet2 I would like to highlight the cell if it does not match up
with a particular cell on worksheet1.
On both worksheet 1 I have named some name ranges: CurrentName.
So on worksheet2 in cell A1 I have gone to the conditional format window and
input the following data: Cell value is, not equal to,
="Indirect(CurrentName&Row())".
But this doesn't seem to distinguish what I really want to accomplish. If I
change the "not equal to" to "equal to" it does the opposite (highlight
versus not highlighted) for all the cells.
I have just copied the format down to the other cells, but all yield the
same results which is not correct.
Is what I'm trying to do possible? If so, do you have any suggestions on how
to accomplish this?
Thank you in advance!!
-Kyrsten

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 Format a Range Name Eric[_4_] Excel Worksheet Functions 7 May 23rd 09 04:37 PM
Conditional format of range AndyB Excel Discussion (Misc queries) 3 May 7th 09 11:14 PM
Conditional Format over Date Range Meowzer Excel Discussion (Misc queries) 3 October 15th 08 02:01 PM
conditional format a range Wanna Learn Excel Discussion (Misc queries) 3 October 11th 06 02:14 PM
Conditional format IP range deo89 Excel Discussion (Misc queries) 4 December 29th 05 02:56 AM


All times are GMT +1. The time now is 11:10 PM.

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"