Hello,
Apologies for the length of this post.
Information:
Using Excel 2002 on WinXP SP3. ** Please note: My organisation does not allow the use of the Analysis ToolPak so I am unable to utilise Networkdays or Workdays functions and would prefer a worksheet function rather than VBA.
Situation:
A new workbook to record KPI performance is created for each month There is a sheet (named Calendar) listing public holidays. Formulas have been added to calculate the observed day for each holiday. The observed date list is in Calendar!A2:A10 and this range has been named Holidays.
There is a separate sheet for each business day within the month. These record work on hand for each date entered into A11 down and compares these to B3 to calculate KPI compliance.
Problem:
I am trying to apply Conditional Formatting to B11 on each daily sheet based around 5 business days between 2 dates. I need to allow for weekends and public holidays which occur between the 2 dates. I have attached a sample workbook.
- The work-on-hand date is day 0 when calculating the date difference
- 5 business days must include the date in B3
- A11 contains the date of work on hand
- B11 needs CF to indicate when the date difference between B3 and A11 exceeds 5 business days, equals 5 business days, or is less than 5 business days.
I have tried combining different functions (e.g. weekday, countif, datedif, sumproduct, etc) but am unable to get anything to work so I’m obviously on the wrong track or am putting them together incorrectly. I would greatly appreciate any assistance to help me put together a formula/formulas that work.
Bookmarks