+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting for the next 7 work days

  1. #1
    Registered User
    Join Date
    07-02-2011
    Location
    Adelaide
    MS-Off Ver
    Excel 2010
    Posts
    4

    Conditional Formatting for the next 7 work days

    Hi
    I have a list of days (1 Jan 2017 to 31 Dec 2017) in column A starting at A5. I would like a formula to use in conditional formatting to highlight the next 7 work days from the current date. I need 2 formulas ? One that will exclude weekends and another that will exclude weekends and public holidays for Australia if possible please?
    Thanks.
    Regards, Greg

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Conditional Formatting for the next 7 work days

    Hi,
    You could use conditional formatting with a rule based on formula (so CF - New rule - Use formula ...)
    select A5:A369 and paste formula (weekends excluded only):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    write down a list of public holidays (I tried to complete but in Australia you get some teritory regulations, so may be I got somewhere wrong, also I "moved" australia day to 16th, to show some difference also today) for instance in H2:H14 and refer to it in NETWORKDAYS function. So next conditional formatting (still all days selected) would be:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    See attached file
    Attached Files Attached Files
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    07-02-2011
    Location
    Adelaide
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Conditional Formatting for the next 7 work days

    Thank you very much Kaper. That is exactly what I was after.

    Also thanks for the attached spreadsheet. That explained the method perfectly.

    Regards, Greg

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Conditional Formatting for the next 7 work days

    Here are slightly different formulae. One is including today and the other not including today. Holidays and weekends are included in M1:M15 as supplied by a search for holidays in Adelaide.
    Go to Conditional Formatting, New Rule, Use formula... and enter this formula and choose formatting to suit.
    Not including today:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Including today:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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: 11-30-2016, 10:39 PM
  2. Replies: 2
    Last Post: 10-03-2016, 08:35 AM
  3. Conditional formatting for <45, 45-90, >90 Days
    By lazyexcel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-08-2015, 12:35 PM
  4. [SOLVED] Conditional Formatting +-4 days
    By dalmuti in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-21-2014, 06:52 PM
  5. [SOLVED] Conditional Formatting - certain days in a calendar
    By keith6292 in forum Excel General
    Replies: 2
    Last Post: 09-04-2013, 12:17 PM
  6. Business Days Conditional Formatting
    By johnsor1 in forum Excel General
    Replies: 3
    Last Post: 01-23-2013, 10:01 AM
  7. Replies: 2
    Last Post: 08-16-2009, 06:16 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