+ Reply to Thread
Results 1 to 7 of 7

Conditional Formatting to exclude weekends

  1. #1
    Registered User
    Join Date
    08-01-2013
    Location
    Sacramento CA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Conditional Formatting to exclude weekends

    Good morning!

    I have a worksheet of each month, column for each day. If today is Monday, we want to enter data for the previous business day. In this case, it will be Friday. I would like to have Friday's date (entire column if possible) to be highlighted in white bold font with maroon fill-in. So, whoever needs to enter Friday's data would know right away when he/she opens up document which column to work on. It works Monday - Thursday but not for Friday. Thanks!

    8/1/2013 8/2/2013 8/5/2013
    Thursday Friday Monday
    Total English-Speaking Staff 64 64 64
    Vacation Scheduled (hours) 45.50 80.00 56.00
    Vacation Unscheduled (hours) 24.50 0.00 0.00
    Sick Leave Scheduled (hours) 37.50 35.00 25.00
    Sick Leave Unscheduled (hours) 73.00 69.25 33.75
    Training Scheduled (hours) 45.00 0.00 0.00
    Training Unscheduled (hours) 0.00 0.00 0.00
    Meeting Scheduled (hours) 0.00 0.00 0.00
    Meeting Unscheduled (hours) 0.00 0.00 0.00
    Other Scheduled (hours) 45.00 44.00 44.00
    Other Unscheduled (hours) 0.00 0.00 0.00
    Total Leave Hours English 270.50 228.25 158.75
    Staff Leave Equivalent 33.81 28.53 19.84
    Total English-Speaking Staff Available 30.19 35.47 44.16

  2. #2
    Forum Contributor
    Join Date
    01-17-2012
    Location
    Canada
    MS-Off Ver
    Excel 365
    Posts
    221

    Re: Conditional Formatting to exclude weekends

    Hi Slantin

    Please see attached or one possible solution.

    cond_format9.xlsx
    Regards,

    jeversf

  3. #3
    Registered User
    Join Date
    08-01-2013
    Location
    Sacramento CA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Conditional Formatting to exclude weekends

    Hi! What the worksheet should be able to do is if today is Monday, the Friday column should be Highlighted in maroon with a bold white font. This tells us that we need to input Friday's data in Friday's column. If today is Tuesday (August 13), then yesterdays Monday's column should be highlighted. So far my conditioning format is working on any day but Monday.

    Thanks!

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

    Re: Conditional Formatting to exclude weekends

    What condition are you using now? If you want to format a cell when A1 is the previous working day try using WORKDAY function in a conditional formatting formula, e.g.

    =A1=WORKDAY(TODAY(),-1)
    Audere est facere

  5. #5
    Registered User
    Join Date
    08-01-2013
    Location
    Sacramento CA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Conditional Formatting to exclude weekends

    Quote Originally Posted by daddylonglegs View Post
    What condition are you using now? If you want to format a cell when A1 is the previous working day try using WORKDAY function in a conditional formatting formula, e.g.

    =A1=WORKDAY(TODAY(),-1)
    Hi! I'm using Dates Occuring and Yesterday. Pls see attached doc. 8/11/2013 is highlighted instead of Friday 8/9/2013. Basically, the previous workday should be highlighted, excluding weekends.

    I did try your suggestion but didn't work.

    Thank you!
    Attached Files Attached Files

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

    Re: Conditional Formatting to exclude weekends

    Just select row 2 and apply conditional formatting using the "New rule" and then "use a formula to determine which cells to format" options. Put this formula in the box

    =A2=WORKDAY(TODAY(),-1)

    and select required formatting

  7. #7
    Registered User
    Join Date
    08-01-2013
    Location
    Sacramento CA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Cool Re: Conditional Formatting to exclude weekends

    Thanks! I really appreciate your help.

+ 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. [SOLVED] Conditional formatting exclude 0?
    By TJ Mustang in forum Excel General
    Replies: 4
    Last Post: 12-17-2018, 02:48 AM
  2. Conditional Formatting weekends
    By IKZOUHETNIETWETEN in forum Excel General
    Replies: 7
    Last Post: 02-22-2013, 01:58 AM
  3. [SOLVED] Conditional Formatting - shading weekends
    By jennbates in forum Excel General
    Replies: 2
    Last Post: 05-03-2012, 02:37 PM
  4. Conditional Formatting - Skipping Weekends
    By RJodoin28 in forum Excel General
    Replies: 3
    Last Post: 01-16-2012, 04:28 AM
  5. Conditional formatting for weekends
    By monozoli in forum Excel General
    Replies: 2
    Last Post: 04-13-2008, 01:44 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