I need some help please with modifying a WORKDAY function in Excel. I am using Excel 2007 (UK version). My dates are in the UK format dd/mm/yyyy. Please see attached Excel spreadsheet. The aim of the spreadsheet is to calculate a delivery date for a user based on the Order Date and Working Day Lead Time (cell B4) or Calendar Day Lead Time (cell B18); plus calculate a working day lead time into calendar days (row 9), which I have already done. There are only two fields the user needs to enter. Either cells B3 and B4, or B17 and B18 depending on whether their supplier quoted them in working days or calendar days.
There are 5 shippings services and each has its own transit time to move the goods from the USA to the UK. The formulae for the AOG shipping service delivery date will need to exclude just Bank Holidays, whereas the other four shipping services will all need to exclude weekends AND Bank Holidays. For clarity,the cells highlighted in yellow are the ones I need help with please.
For an AOG shipping service, what formula do I need in cell B8 (Delivery Date) to be able to do B3+B9+B7 but if this date falls on a Bank Holiday (in the range Z22:Z40), it should move to the next day (which CAN be a Saturday or Sunday) but can’t be a Bank Holiday.
Here is an example to demonstrate what needs to happen:
Order Date = 18 Dec 2015
Working Day Lead Time = 3 (which takes us to 23 Dec)
Calendar Day Lead Time = 5 (as the 19th and 20th is a weekend)
Delivery Date = Saturday 26 Dec 2015 (23 Dec + 2 days transit for AOG takes us to 25 Dec but deliveries cannot take place then as its a Bank Holiday)
For the IOR, Critical, Routine and Sea Freight Routine shipping services, the Delivery Date (in cells C8, D8, E8, F8) needs be B3(Order Date) +C9 (Calendar Days Lead Time) +C7 (transit Time). If the resulting date falls on a weekend or a day that is a Bank Holiday (in range Z22:Z40), move the delivery date to the next day.
Here is an example to demonstrate what needs to happen for an IOR shipping service:
Order Date = 18 Dec 2015
Working Day Lead Time = 3 (which takes us to 23 Dec)
Calendar Day Lead Time = 5 (as the 19th and 20th is a weekend)
Delivery Date = Tuesday 29 Dec 2015 (23 Dec + 2 days transit for IOR takes us to 25 Dec but deliveries cannot take place then as its a Bank Holiday, nor can they take place on weekend of 26/27 Dec, nor can they take place on Monday 28 Dec as this too is a Bank Holiday, so the next date is 29 Dec)
Any help you can give me with the formulas would be much appreciated.
Thanks,
Mark