Conditional Format Weekends

S.H.A.D.O.

Well-known Member
Joined
Sep 6, 2005
Messages
1,915
Hi everyone,

I have a range of cells B5:G250.
In B I have the date.
In C I have the Day ( i.e. Monday )
In D I have a start time.
In E I have a finish time.
In F I have a total hours worked.
Everything is fine.

I would like to conditionally format cells B:F where C = Saturday OR Sunday please.
Any help will be greatly appreciated.

All the Best.
SHADO
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Try the following...

1) Select B5:B250, making sure that B5 is the active cell

2) Format > Conditional Formatting > Formula Is

3) Enter the following formula:

=OR(WEEKDAY($C5)=1,WEEKDAY($C5)=7)

4) Choose your formatting

5) Click Ok twice

Hope this helps!
 
Upvote 0
An alternative at step 3 of Domenic's suggestion is this formula:
=WEEDAY($C5,2)>5
 
Upvote 0
That works a treat, thanks very much Domenic.

All the Best.
SHADO

You're very welcome! Also, if Column C can contain blanks, you may want to try the following instead...

=AND($C5<>"",WEEKDAY($C5,2)>5)

Hope this helps!
 
Upvote 0
Hi Domenic,

You're very welcome! Also, if Column C can contain blanks, you may want to try the following instead...

=AND($C5<>"",WEEKDAY($C5,2)>5)

Hope this helps!
It could do, and that amended Formula is exactly what I was after.

Have a Great Weekend.
All the Best.
SHADO
 
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,071
Latest member
cdnMech

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top