Coloring Cells in Excel 2007

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

rdagirl

Thread Starter
Joined
Jan 3, 2013
Messages
1
Can anyone help me figure out how to do the following?

Cell A1 has a date of 12/15/12 and cell B1 has a date of 1/15/13 I want it to color cell B1 red. If A1 has a date of 12/15/12 and B1 has a date of 12/15/12 then I want it yellow. If A1 has a date 12/15/12 and B1 has a date of 12/1/12 then I want it green. Help!
 

etaf

Wayne
Moderator
Joined
Oct 2, 2003
Messages
65,454
use conditional formatting and set up some rules

use a formula

=AND(A1= DATE(2012, 12, 15), B1=DATE(2013,1,15))
format red

=AND(A1= DATE(2012, 12, 15), B1=DATE(2012, 12, 15))
format yellow

=AND(A1= DATE(2012, 12, 15), B1=DATE(2012, 12, 1))
format green

see attached
 

Attachments

Joined
Jun 21, 2012
Messages
16
Do you want something general? So if the entry in your B column is a later date than your A column it's red, if equal it's yellow and if earlier it's green? Or will 12/15/2012 and the other dates you listed always be the entries?
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Members online

Top