Conditional Formatting

dcoledc

Active Member
Joined
May 6, 2010
Messages
403
I have a series of cells that I turn yellow when the user enters a 1 in the cell. When the 1 is deleted the conditional formatting is no long true so should then return the color to its original color. Or at least that is my understanding.

My formatting works fine in Excel 2003 and 2007, but in 2010, sometimes it doesn't work. And that "sometimes" is the problem. It works inconsistantly and b/c it is inconsistant, I don't really know how to address it.

Has anyone else come across this behavoir and how did you fix it?

The format rule I am using is:

Code:
Format only cells that contain

Cell value equal 1
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
I have come across this and it seems to be some kind of a screen refresh problem.

Enter your 1 ... cell turns Yellow...
now delete the 1... cell stays yellow.
scroll your page so that the cell in question moves out of screen, and then scroll back to it... the yelllow is now gone...

I don;t know what causes it or how to work around except to scroll up and down to move the cell in and out of view to force a refresh
 
Upvote 0
Yes, I have noticed that as well. I'm wondering if VBA would solve instead of conditional formatting.
 
Upvote 0
I have a series of cells that I turn yellow when the user enters a 1 in the cell. When the 1 is deleted the conditional formatting is no long true so should then return the color to its original color. Or at least that is my understanding.

My formatting works fine in Excel 2003 and 2007, but in 2010, sometimes it doesn't work. And that "sometimes" is the problem. It works inconsistantly and b/c it is inconsistant, I don't really know how to address it.

Has anyone else come across this behavoir and how did you fix it?

The format rule I am using is:

Code:
Format only cells that contain

Cell value equal 1
I've experienced this before in Excel 2002.

The "problem" only happened a couple of times so I took no corrective action.

I've also found this:

http://www.pptfaq.com/FAQ00129.htm
 
Upvote 0
I have come across this and it seems to be some kind of a screen refresh problem.

Enter your 1 ... cell turns Yellow...
now delete the 1... cell stays yellow.
scroll your page so that the cell in question moves out of screen, and then scroll back to it... the yelllow is now gone...

I don;t know what causes it or how to work around except to scroll up and down to move the cell in and out of view to force a refresh
I've experienced this exact same thing in Excel 2002.

It only happened a couple of times so I never bothered trying to correct it.

See this:

http://www.pptfaq.com/FAQ00129.htm
 
Upvote 0
Still bothered me so I kept searching and found what seems to be a solution. Place this code in your worksheet change mod:

Code:
 Private Sub Worksheet_Change(ByVal Target As Range)
Application.ScreenUpdating = False
Application.ScreenUpdating = True
End Sub

Seems to work. Hope it stays that way.:)
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,909
Members
452,949
Latest member
beartooth91

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top