You can also do this with the WEEKDAY function. This returns a digit between 1 (Monday) and 7 (Sunday) if Windows dates are set up in the standard way.
Try:
Code:
=OR(WEEKDAY(A1)=6,WEEKDAY(A1)=7)
If you want Saturday and Sunday to be different colours, set two conditional formats on the cell, just using:
I just have a formula in the cell D20 saying =$D$5+1 I change D5 and want D20 to remain white background unless the calculated date is on a weekend in which case turn red Best way forward?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.