Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this:
With A2: (a date) These formula can be used in Conditional Formatting: RED This formula returns TRUE if A2 is LESS THAN OR EQUAL TO TODAY =(A2<=TODAY()) YELLOW This formula returns TRUE if A2 is ONE workday after TODAY =IF(AND(A2TODAY(),WEEKDAY(A2,2)<6),(A2-(TODAY()+CHOOSE(WEEKDAY(TODAY(),2),0,0,0,0,2,2,1)) )=1,) GREEN This formula returns TRUE if A2 is TWO workdays after TODAY =IF(AND(A2TODAY(),WEEKDAY(A2,2)<6),(A2-(TODAY()+CHOOSE(WEEKDAY(TODAY(),2),0,0,0,0,2,2,1)) )=2,) Does that help? *********** Regards, Ron XL2002, WinXP "2manypuppies" wrote: Greetings! I am using conditional formatting to show when a due date is coming up based on today's date. I have it set up so when the due date is 2 days out the cell turns green, 1 day out turns yellow, and today the cell turns red. How can I conditionally format so Saturday & Sunday aren't figured in as days? ie. If something is due on Monday, I want that cell to turn green on Thursday & yellow on Friday. My formula is currently set up using the TODAY(), TODAY()+1 & TODAY()+2 functions for each color. THanks! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Conditional Formatting Weekends | Excel Worksheet Functions | |||
How do I set up a calculation to exclude weekends? | Excel Worksheet Functions | |||
Date Calculation to exclude weekends | Excel Worksheet Functions | |||
calculation to exclude weekends | Excel Worksheet Functions | |||
Schedule to exclude weekends and holidays | Excel Discussion (Misc queries) |