format cell colour if day is a saturday or sunday?

merlin777

Well-known Member
Joined
Aug 29, 2009
Messages
1,397
Office Version
  1. 2007
I'm trying to use a conditional formatting formula to colour a cell if the date it contains is a saturday or sunday.

I actaully need to do a whole column of 31 cells on 12 sheets but i can't even get one to format.

I'm using this for the formula to try to colour A11 which is a saturday:

or(weekday(A11)=1,weekday(A11)=7)

but it doesn't format.

What am I doing wrong, please?

To cover 31 cells across 12 sheets do I just use the format painter to copy the format or this cell to the others?

TIA
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
you need a = infront
=or(weekday(A11)=1,weekday(A11)=7)
 
Upvote 0
Well i'll be jiggered. I did put one originally and excel complained so I removed it and excel added it's own one. I had a formula in that box identical to yours and it didn't work! Thanks!
 
Upvote 0

Forum statistics

Threads
1,215,487
Messages
6,125,079
Members
449,205
Latest member
Healthydogs

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