Conditional formatting based on week day

Dear all,
is there any way to apply a conditional formatting based on the week day filled in the cell?
I have cells with the following format:
Sun 31/12/2015
I would like Sundays to have a different background color.

Working with CALC on a Mac


Let’s say the date column is A. In a separate column, run the formula =WEEKDAY(A1; 2). The documentation for the function is here. Monday will be 1, Friday 5, Sunday 7.

Then, apply Conditional Formatting on the new column, every value less than or equal to 5, have that be your weekday color, add another style and condition for greater than 5, that will be your weekend color. Conditional formatting documentation here.

As explained by @Lupp, these steps can be consolidated by using a conditional formatting Formula from the dropdown list. The following steps will succeed in reproducing @Lupp’s finished product:

  1. Select the first cell in the list of dates (A1);
  2. Add Conditional Formatting;
  3. Select from the dropdown list in the formatting dialog box, Formula;
  4. Next to the Formula dropdown selector, enter the formula: WEEKDAY(A1; 2) <=5 (assuming you are in cell A1);
  5. Pick/edit the style with the background to suit;
  6. Accept conditional formatting, close dialog;
  7. Copy contents of cell in sheet view using Ctrl-c;
  8. Select rest of column of dates;
  9. Use Paste Special function (right mouse click or Edit on menu);
  10. In Paste Special dialog, pick Format only for paste, unselect all others, press ok.

Now the dates are formatted the way you desire.

Perfect, thanks!

If the answer solves your question please tick the :heavy_check_mark:.

Excellent solution and a good search functionality! Big thanks!

CF conditions can be arbitrary formulae returning a logical (Boolean) result. Relative addressing is to give with respect to the topmost leftmost cell of the range.

See also attached.