Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Roy
 
Posts: n/a
Default Conditional Formating 4 conditions

I need to set up 4 conditions. Column F is Date Due, column G Date Complete,
and Column H is Status.

I want column H to change pattern color and insert the color name if column
F is past the Date Due to be red, yellow if 5 days before the date due, white
if date due is on target, and green if a date is entered into the date
complete column.

My formula is
if(f2<=today(),"RED",if(f2<=today()+5,"YELLOW",if( f2<=today()+365,"WHITE,if(g2<f2,"GREEN"

How can I do this? the red, yellow, and white seem to work, but I can't get
the green to work.

Roy
  #2   Report Post  
Maurice
 
Posts: n/a
Default


First Part
=IF(E10,"GREEN",IF(F1<=TODAY(),"RED",IF(F1<=TODAY ()+5,"YELLOW",IF(F1<=TODAY()+365,"WHITE","GREEN")) ))
will set the text, then use conditional formating for the column to
identify the "RED", "YELLOW" and "GREEN" components, the cell should be
formatted as WHITE already, the last "GREEN" in the statement could be
anything you want.

Should also mention adjust references as necessary, the first part of
the statement allows any value, so even if you don't enter a date but
mark it as complete it will still work.

IF statments rely on finding the first 'TRUE' value, all the rest are
then disregarded


--
Maurice


------------------------------------------------------------------------
Maurice's Profile: http://www.excelforum.com/member.php...fo&userid=1948
View this thread: http://www.excelforum.com/showthread...hreadid=374205

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
More than 3 Conditional Formatting Conditions Beth H Excel Worksheet Functions 12 January 6th 06 07:35 PM
Conditional formatting: I have five conditions, how to do this? Danzguy Excel Discussion (Misc queries) 2 May 11th 05 08:21 AM
Help using Conditional Formating of Entire Rows [email protected] Excel Worksheet Functions 4 February 16th 05 04:29 PM
more than 3 conditional formating in excel Manan Excel Discussion (Misc queries) 2 February 7th 05 09:12 PM
Adding more than three Conditions to 'Conditional Formatting' David McRitchie Excel Discussion (Misc queries) 1 November 27th 04 06:03 PM


All times are GMT +1. The time now is 03:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"