×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Microsoft: Office FAQ

Conditional Cell Formatting

Is there a cell formula that can change the color of the cell based on its content by oscarse
Posted: 19 Jan 07

Not easily ... you could possibly write an Excel VBA function to do this ...  BUT ... Excel 97 and above have a condition format capability that will automatically format a cell based on a set of user entered rules

By selecting a cell or group of cells, format rules, can be applied under FORMAT Conditional Formatting.

example:

setup a total column
highlight the column
select Conditional Formatting
Set the first rule as: greater then 0 with Pattern fill Green
Add a new rule and set to: Less then 0 with Pattern fill Red
Add a new rule and set to: equal 0 (don't change any formats)

now the column of cells will follow whatever value exists in the cells;
anything < 0 will turn the cell red
0 will be no color change
> 0 will be Green

 

Back to Microsoft: Office FAQ Index
Back to Microsoft: Office Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close