Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / November 2007

Tip: Looking for answers? Try searching our database.

Conditional formatting based on dates

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ann - 30 Nov 2007 15:57 GMT
I would like to shade cells in my spreadsheet based on information contained
within two date fields:
Column E = Target Date
Column F = Complete Date (left blank until task completed)
Column G = Status (shaded yellow if today's date is equal to col. E and col.
F is null; shaded red if today's date is past col. E and col. F is null;
shaed grey if col. F contains any date (is not null).

Any help would be appreciated.
Nigel - 30 Nov 2007 17:32 GMT
You need to set up conditional formatting for the cells.

Select the first cell in column G that you wish to control.  Goto to the
menu item Format and choose Conditional Formatting.

In the left hand box condition 1, select 'Formula Is' , in the box next to
the right type in  =AND($E4=TODAY(),$F4=0)
(Note: I have chosen row 4 above, change to suit your first row); then in
click the Format option and set the Pattern to Yellow.

Click Add>> and in condition 2 set 'Formula Is' and enter in box
=AND(($E4<TODAY(),$F4=0)
Set pattern to Red.

Click Add>> and in condition 3 set 'Formula Is' and enter in box =F8>0
Set pattern to Grey.

Press OK  and copy the cell down to all rows to be monitored.

Signature

Regards,
Nigel
nigelnospam@9sw.co.uk

>I would like to shade cells in my spreadsheet based on information
>contained
[quoted text clipped - 7 lines]
>
> Any help would be appreciated.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.