Conditional Formatting 2 events

millerlite2ky

Board Regular
Joined
Oct 25, 2002
Messages
87
Condition 1: if the cell (c4) is not blank, then I want cell (h4) to format a gray shade fill. Condition 2: Then if cell (H4) equals cell (c4), then I want the cell to unshade and be a red font color.
Condition 3: But if the cell (h4) doesn't equal (C4), then I want the cell to stay gray filled, but have the red font.

I've tried several times, but it only will read the first condition. I'm using Excel 2003 at work and am setting up a logsheet for items being checked out for use by employees. As they check an item out (C4), then cell (H4) will gray fill until item is checked back after use. At that time, I want Excel to do condition 2 if the same item is checked back in or do condition 3 if the item doesn't match.

Thanks for any help,

Scott
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Cell H4 Format: Font Colour Automatic and No Fill

Cell H4 Conditional Format 1: Formula Is =AND($C$4<>"",$C$4<>$H$4) Format: Red Font on Gray Fill

Cell H4 Conditional Format 2: Formula Is =IF($C$4=$H$4,1,0) Format: Red Font on No Fill
 
Upvote 0
Hi,

What are your priorities in the following situations
C4 = H4
C4 not blank

Do you want gray-fill or red-font and no-fill?

and
C4<>H4
C4 not blank

Do you want gray-fill or gray-fill and red-font?

M.
 
Upvote 0

Forum statistics

Threads
1,224,596
Messages
6,179,807
Members
452,944
Latest member
2558216095

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