Conditional Formatting to Exclude Weekends
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!
|