How do I make a cell color turn RED

Bob Katin

New Member
Joined
Nov 28, 2003
Messages
6
How do I make a cell color turn RED if the value does not match the parameter. For example:

1. If cell X is not before date in cell Y, make cell X turn "RED".

2. If cell A is not within the range W to Z, make cell A turn "RED"
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Use Conditional Formating - look this up in the Help file, but basically you'll set the conditional formating of cell X to contain the formula
=IF(X<=Y,1,0) then set the format of the cell to contain your red background colour.

(Goto FORMAT > CONDITIONAL FORMATTING and set condition 1 to read Formula Is... and insert the above, substituting X and Y)

Hope that helps
 
Upvote 0
Bob Katin said:
How do I make a cell color turn RED if the value does not match the parameter. For example:

1. If cell X is not before date in cell Y, make cell X turn "RED".

2. If cell A is not within the range W to Z, make cell A turn "RED"

Use Format/Cells/Conditional Formatting/Cell Value Is
 
Upvote 0
Welcome to the Board, Bob!

Take a look at Format-->Conditional Formatting.

For the first one, in the cell that houses the date you want formatted, you can use Condition 1-->Cell Value Is-->Greater Than-->The cell with the starting date. Format Patterns as Red.

For the second one, you can use a SUMIF formula, like =SUMIF(W1:Z1,A1) in a seperate cell.

Conditional Format Cell A1-->Condition 1-->Cell Value Is-->Not Equal To-->The Cell where the SUMIF is located. Format Patterns as Red.

Hope that helps,

Smitty
 
Upvote 0

Forum statistics

Threads
1,213,544
Messages
6,114,249
Members
448,556
Latest member
peterhess2002

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