Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
wayliff
 
Posts: n/a
Default Compare two Sheets with Conditional Formatting


I'm going insane

I'm trying to compare two sheets using Walkenbach's approach but for
some reason when I use it...certain values don't show differences.

Example:

Sheet 1 (Range Name is Grid) has 18000 on Cell A1
Sheet 2 (Range Name is OldGrid) has 18000 on Cell A2

So if I change Cell A1 on Sheet 1 to 1 it should show me change but
no...it just does nothing. However if I type 133...it shows change.

Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _
"=COUNTIF(OldGrid,A1)=0"
Selection.FormatConditions(1).Interior.ColorIndex = 40

Help really appreciated...


--
wayliff
------------------------------------------------------------------------
wayliff's Profile: http://www.excelforum.com/member.php...o&userid=29860
View this thread: http://www.excelforum.com/showthread...hreadid=501200

  #2   Report Post  
Posted to microsoft.public.excel.misc
Kleev
 
Posts: n/a
Default Compare two Sheets with Conditional Formatting

I would guess that the value 1 exists in the range oldgrid but that 133 does
not.

"wayliff" wrote:


I'm going insane

I'm trying to compare two sheets using Walkenbach's approach but for
some reason when I use it...certain values don't show differences.

Example:

Sheet 1 (Range Name is Grid) has 18000 on Cell A1
Sheet 2 (Range Name is OldGrid) has 18000 on Cell A2

So if I change Cell A1 on Sheet 1 to 1 it should show me change but
no...it just does nothing. However if I type 133...it shows change.

Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _
"=COUNTIF(OldGrid,A1)=0"
Selection.FormatConditions(1).Interior.ColorIndex = 40

Help really appreciated...


--
wayliff
------------------------------------------------------------------------
wayliff's Profile: http://www.excelforum.com/member.php...o&userid=29860
View this thread: http://www.excelforum.com/showthread...hreadid=501200


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
enhanced conditional formatting Stuart Excel Discussion (Misc queries) 13 November 13th 05 07:20 PM
Conditional Formatting - Can I select a select with Conditional Formatting? Greegan Excel Worksheet Functions 5 October 31st 05 02:19 PM
Conditional Formatting GoldDave Excel Discussion (Misc queries) 6 October 6th 05 02:53 PM
conditional formatting with formula mwc0914 Excel Worksheet Functions 2 July 20th 05 08:11 PM
conditional formatting on a PivotTable? confused Charts and Charting in Excel 0 June 13th 05 04:15 PM


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