Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditional Format based on day of the week 2

Status
Not open for further replies.

YANKRAY

Technical User
Nov 7, 2003
283
MS Excel 2003.

I have a row of dates (by day).

The day is formated to only show the day of the week:

Mon Tue Wed Thu Fri Sat Sun

Can I (how can I) conditionally format the cells that contain Sat and Sun to have a different background color (for examply gray).

Thanks,
Ray
 




Check out Format > Conditional Formatting


Skip,

[glasses]Did you hear what happened when the OO programmer lost his library?...
He's now living in OBJECT poverty![tongue]
 
Skip,

Thanks for the quick response. I understand where, but don't know how to write the formula.

Ray
 



In addition the MOD function, MOD(CellRef,7) either 0 or 1, for sat or sun.

Skip,

[glasses]Did you hear what happened when the OO programmer lost his library?...
He's now living in OBJECT poverty![tongue]
 

Formula Is: =WEEKDAY(A1,2)>5

[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ 181-2886 before posting.
 


[tt]
=OR(mod(a1,7)=0,mod(a1,7)=1)
[/tt]
where a1 is the FIRST date

Skip,

[glasses]Did you hear what happened when the OO programmer lost his library?...
He's now living in OBJECT poverty![tongue]
 
poor ol' cat is in for some skinning today!

=Or(TEXT(A1,"ddd")="Sat",TEXT(A1,"ddd")="Sun")

[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ 181-2886 before posting.
 




Or...
[tt]
=Left(TEXT(A1,"ddd"),1)="S"
[/tt]


Skip,

[glasses]Did you hear what happened when the OO programmer lost his library?...
He's now living in OBJECT poverty![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top