+ Reply to Thread
Results 1 to 3 of 3

Colour Cells that show weekends

  1. #1
    Registered User
    Join Date
    05-28-2013
    Location
    Aberdeen
    MS-Off Ver
    Excel 2010
    Posts
    35

    Colour Cells that show weekends

    Hi I have a calendar that contains the date in one column and the second column indicate the day. column A Row 1 has the date in ddmmyyy format (01/01/2016) and in column B Row 1 there is a formula (=A1) formatted to ddd to show the week day. What I am trying to achieve is to highlight the cells that are the weekends, I have tried a conditional format but have been unable to get it to work.

    Thanks in advance for any help

    Sandy

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Colour Cells that show weekends

    Hello,

    you can use a conditional format with a formula. In the formula you can use the Weekday function, like =Weekday(A1). With no additional parameters it returns 1 for Sunday and 7 for Saturday. There are parameters for different settings. For example =Weekday(A1,2) returns 1 for Monday through to 7 for Sunday.

    So in your conditional formatting formula you could use

    =weekday(A1,2)>5

    If the weekday is greater than 5 then it is a weekend.

    cheers, teylyn

  3. #3
    Registered User
    Join Date
    05-28-2013
    Location
    Aberdeen
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: Colour Cells that show weekends

    Thank you Teylyn that is exactly what I was looking for I was over thinking it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 02-13-2014, 06:31 AM
  2. CF to colour cells that show a date approaching todays date
    By alexander.small in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-24-2013, 05:23 AM
  3. Change colour of cells based on another cell's colour (Not value)
    By LTrain89 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-25-2013, 08:44 PM
  4. Macro that clears contents of all cells of certain colour (colour 35) in all sheets
    By Hanskubansku in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-25-2012, 07:33 AM
  5. Show number as a colour
    By WCE_123 in forum Excel General
    Replies: 1
    Last Post: 10-25-2011, 03:38 PM
  6. Show possible colour combinations.
    By Bella81 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 02-26-2011, 10:30 AM
  7. Changing a cell's colour basing on other cells' colour
    By rhua5436 in forum Excel General
    Replies: 11
    Last Post: 09-23-2010, 05:49 AM
  8. how can I format to show different colour after edit
    By Ismail in forum Excel General
    Replies: 2
    Last Post: 12-27-2005, 03:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1