Conditional Format

MACY8167

New Member
Joined
Nov 11, 2009
Messages
21
I am using the below formula to notify of when a change is made.
=IF(AND(R2="LEX",CS2>$A$2,CS2<$A$3),"Change"," ")

This formula looks at cell R2 to see if the text is "LEX". Then Cell CS2 contains a date. The formula checks to see if the date in CS2 is between the dates in cells A2 and A3. If all is True "Change" is entered in the column with the formula

I would like to change it to a conditional format and change the format of cell R2 instead. I guess I don't understand how things need to entered into a conditional format because nothing is working. Any help would be greatly appreciated
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Conditional formatting formulas do not need to be structured as an IF..
Because CF is already an IF by default.
If the formula is TRUE - change the color, If the formula is FALSE - Do nothing.

So you're formula needs to be structured only to return TRUE or FALSE...
The AND function does just that, returns TRUE if all conditions are met, otherwise FALSE

Try
=AND(R2="LEX",CS2>$A$2,CS2<$A$3)

Hope that helps.
 
Upvote 0

Forum statistics

Threads
1,224,538
Messages
6,179,412
Members
452,912
Latest member
alicemil

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