Hi All,
I'm trying to build a tool to lookup delivery times in Excel 2007 and I'm a bit stuck. The requirements i have are;
- Each suburb can have a different delivery timeframe, these are located on a separate sheet
- Delivery times are in working days so it needs to account for weekends and public holidays (public holidays vary by state and are also on a separate sheet)
- Don't want to use VBA because macros are disabled by default
What i have so far is;
Excel 2007
The problem is with the formula in J6 and J7, it's meant to look for any holidays in NSW from the public holidays sheet and add a day for each one to the delivery time. 2 problems;
1. Because i've used vlookup it will only pick up the first row of public holidays, any suggestions how i can make it look for all holiday dates in NSW (or another state the delivery is going to). I can rearrange the holiday dates pretty much however i need to.
2. If there's a public holiday today, it doesnt add an extra day to the delivery period. It works fine if the PH is any day after today.
I'm still learning with Excel so if anyone can suggest solutions to these probs and/or how to simplify what i have that would be awesome.
Cheers,
Charlie
I'm trying to build a tool to lookup delivery times in Excel 2007 and I'm a bit stuck. The requirements i have are;
- Each suburb can have a different delivery timeframe, these are located on a separate sheet
- Delivery times are in working days so it needs to account for weekends and public holidays (public holidays vary by state and are also on a separate sheet)
- Don't want to use VBA because macros are disabled by default
What i have so far is;
Excel Workbook | |||||||
---|---|---|---|---|---|---|---|
E | F | G | H | J | |||
5 | Delivery Postcode | Suburb | State | Expected Business Days for Delivery | Earliest possible delivery date | ||
6 | 2000 | DAWES POINT | NSW | 1 | 17/02/2011 | ||
7 | HAYMARKET | NSW | 3 | 21/02/2011 | |||
Three |
Cell Formulas | ||
---|---|---|
Range | Formula | |
F6 | =VLOOKUP($E$6,'Raw Data'!$A$1:$QA$5000,$D6,FALSE) | |
F7 | =VLOOKUP($E$6,'Raw Data'!$A$1:$QA$5000,$D7,FALSE) | |
G6 | =VLOOKUP($E$6,'Raw Data'!$A$1:$QA$5000,($D6+1),FALSE) | |
G7 | =VLOOKUP($E$6,'Raw Data'!$A$1:$QA$5000,($D7+1),FALSE) | |
H6 | =VLOOKUP($E$6,'Raw Data'!$A$1:$QA$5000,($D6+2),FALSE) | |
J6 | =WORKDAY(TODAY(),H6,(VLOOKUP(G6,'Public Holidays'!A:C,3,FALSE))) | |
J7 | =WORKDAY(TODAY(),H7,(VLOOKUP(G7,'Public Holidays'!A:C,3,FALSE))) |
The problem is with the formula in J6 and J7, it's meant to look for any holidays in NSW from the public holidays sheet and add a day for each one to the delivery time. 2 problems;
1. Because i've used vlookup it will only pick up the first row of public holidays, any suggestions how i can make it look for all holiday dates in NSW (or another state the delivery is going to). I can rearrange the holiday dates pretty much however i need to.
2. If there's a public holiday today, it doesnt add an extra day to the delivery period. It works fine if the PH is any day after today.
I'm still learning with Excel so if anyone can suggest solutions to these probs and/or how to simplify what i have that would be awesome.
Cheers,
Charlie