Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Conditional formatting to exclude weekend and Bank Holidays

Hi All

I am trying to use conditional formatting to show the difference between a
due date and a forecast date. For example, if the forecast date is up to 5
days from the due date the cell is green, if is between 6 to 10 days it
turns yellow and if it is 11 days or more it turns red. How can I
conditionally format(or any other way) so Saturday & Sunday, and if possible
Bank Holidays as well, aren't figured in as days?

Any help would be appreciated

Thanks

Paul



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default Conditional formatting to exclude weekend and Bank Holidays

In the formula in the conditional format, use the NETWORKDAYS function rather
than just (DateA-DateB).

This takes out weekedns and an optional list of holiday dates (usually best
to create a list on a separate [hidden] sheet and use a named range to refer
to this).

So you might have a condition:
=NETWORKDAYS(ForecastDate, ActualDate, HolidayList)5

play with this depending on whether you expect actual to be earlier or later
than forecast, and whether you expect a 1 or a 0 if they are the same day
(depends on your meaning of 'days between forecast and actual')
--
Adam Vero
MCP, MOS Master, MLSS, CWNA
http://veroblog.wordpress.com
http://www.meteorit.co.uk


"Paul" wrote:

Hi All

I am trying to use conditional formatting to show the difference between a
due date and a forecast date. For example, if the forecast date is up to 5
days from the due date the cell is green, if is between 6 to 10 days it
turns yellow and if it is 11 days or more it turns red. How can I
conditionally format(or any other way) so Saturday & Sunday, and if possible
Bank Holidays as well, aren't figured in as days?

Any help would be appreciated

Thanks

Paul




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how I exclude weekend dates Edward Chenderes Setting up and Configuration of Excel 2 March 2nd 21 04:58 PM
Conditional formatting to exclude weekend and Bank Holidays Paul Excel Worksheet Functions 12 May 29th 07 12:31 AM
Conditional Formatting & UK Bank Holidays Duncs Excel Discussion (Misc queries) 5 October 3rd 06 01:59 PM
How do I use conditional formatting to hilite weekend dates where. IngeD Excel Worksheet Functions 1 April 19th 06 03:50 AM
Schedule to exclude weekends and holidays Erin D. Excel Discussion (Misc queries) 3 March 15th 05 09:49 PM


All times are GMT +1. The time now is 10:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"