ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Conditional formatting (https://www.excelbanter.com/excel-discussion-misc-queries/48925-conditional-formatting.html)

Patrick

Conditional formatting
 
I have formatted cells with a date entered in them have custom format of
'dddd' this will give the day of the week, no problem.

The difficulty I hace now is that I want 'Saturday' and 'Sunday' to have
conditional formatting so the cells change colour. I can not seem to get this
to work with either cell = Saturday or formula = Saturday.

Please help! Am I doing something wrong or is there another way to get this
to work?

Many Thanks

Bryan Hessey


Assumng A1 for the cell, try a conditional format of Formula

=weekday(A1,3)3





Patrick Wrote:
I have formatted cells with a date entered in them have custom format
of
'dddd' this will give the day of the week, no problem.

The difficulty I hace now is that I want 'Saturday' and 'Sunday' to
have
conditional formatting so the cells change colour. I can not seem to
get this
to work with either cell = Saturday or formula = Saturday.

Please help! Am I doing something wrong or is there another way to get
this
to work?

Many Thanks



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=473728


Stefi

Apply formula (say A1 is the first cell in the range to be formatted)
=WEEKDAY(A1,2)5
if you number days of the week starting with Monday, or
=WEEKDAY(A1,1)=1 or WEEKDAY(A1,1)=6
if you number days of the week starting with Sunday

Regards,
Stefi

€˛Patrick€¯ ezt Ć*rta:

I have formatted cells with a date entered in them have custom format of
'dddd' this will give the day of the week, no problem.

The difficulty I hace now is that I want 'Saturday' and 'Sunday' to have
conditional formatting so the cells change colour. I can not seem to get this
to work with either cell = Saturday or formula = Saturday.

Please help! Am I doing something wrong or is there another way to get this
to work?

Many Thanks



All times are GMT +1. The time now is 02:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com