+ Reply to Thread
Results 1 to 6 of 6

Conditional Formatting for Day of Week

  1. #1
    Registered User
    Join Date
    09-30-2014
    Location
    Denver, CO
    MS-Off Ver
    2009
    Posts
    60

    Conditional Formatting for Day of Week

    Looking to make all Friday & Saturday's on an extensive worksheet gray - I am guessing this is done using conditional formatting. Anyone remind me on this - it has been a few years.

    Thanks,
    Mitch
    Denver, CO

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Conditional Formatting for Day of Week

    You can use WEEKDAY function, e.g. with date in A1

    =WEEKDAY(A1)>5

    Friday has a weekday of 6 and Saturday 7 so that will format both

    Note that excel thinks that a blank cell is a Saturday (!) so if A1 might be blank avoid formatting that by changing the formula to:

    =AND(WEEKDAY(A1)>5,A1<>"")
    Audere est facere

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Conditional Formatting for Day of Week

    Hi Mitch,

    Yes CF will do it, as would a VBA macro but better to keep things simple.

    Assuming the date is in A1 then start the CF wizard and start a new rule and use the 'Use a formula....option.
    In the rule enter

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and set the fill to grey.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    09-30-2014
    Location
    Denver, CO
    MS-Off Ver
    2009
    Posts
    60

    Re: Conditional Formatting for Day of Week

    I may be missing something here, guys. If I highlight cells that each contain a day A1 - Monday, A2 - Tuesday, etc. If i highlight all of them and enter the CF with =Weekday(A1)>=6, the entire range is turning the color. Am I missing a step?

    -Mitch

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Conditional Formatting for Day of Week

    Make sure you are using A1 and not $A$1. Cf will over-rule any regular formatting
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Conditional Formatting for Day of Week

    I take it that was the problem? Fairly common problem too. Thanks for the feedback

+ 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. Conditional formatting cell colors for the 7 days of the week
    By damianberry in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-19-2013, 02:51 AM
  2. [SOLVED] Conditional Formatting Depending on Day of the Week
    By Bisquick in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-13-2013, 04:25 AM
  3. Conditional Formatting Help-sales by fiscal week
    By themoralbank in forum Excel General
    Replies: 2
    Last Post: 07-11-2011, 10:07 AM
  4. Conditional Formatting Days of the Week
    By braydon16 in forum Excel General
    Replies: 3
    Last Post: 01-13-2011, 03:43 PM
  5. conditional formatting/days of the week
    By ki_cz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-04-2008, 05:29 AM

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