![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Location: Miami, FL
Posts: 2
|
I have a list that records the Login date, service requested, and a due date.
I would like to have the due dates automatically come up based upon the login date and service requested. However, I need to account for weekends, since the service agreements are based upon a business week. 1) Service requested - 24 Hours - 1 day, Priority = 2 days, Rush = 4 days, Regular = 6 days 2) Account for weekends A:1 Login 4/23/02 B:1 Service Rush C:1 Due Date 4/29/02 i.e. If Rush, M = Login +4; T-F = Login + 6 I was thinking that a Vlookup could be used to determine what day that the login date fell upon. (I have another workbook that contains all of the days up until the year 2006.) And then the mathematical addition needed would be based upon whether that date fell on M, T, W, T, F. However, I'm not quite sure how best to accomplish all of these tasks. [ This Message was edited by: kjolley on 2002-04-30 06:37 ] [ This Message was edited by: kjolley on 2002-04-30 06:40 ] |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
On 2002-04-30 06:36, kjolley wrote: I have a list that records the Login date, service requested, and a due date. I would like to have the due dates automatically come up based upon the login date and service requested. However, I need to account for weekends, since the service agreements are based upon a business week. 1) Service requested - 24 Hours - 1 day, Priority = 2 days, Rush = 4 days, Regular = 6 days 2) Account for weekends A:1 Login 4/23/02 B:1 Service Rush C:1 Due Date 4/29/02 i.e. If Rush, M = Login +4; T-F = Login + 6 I was thinking that a Vlookup could be used to determine what day that the login date fell upon. (I have another workbook that contains all of the days up until the year 2006.) And then the mathematical addition needed would be based upon whether that date fell on M, T, W, T, F. However, I'm not quite sure how best to accomplish all of these tasks. If A1 is just a date, say, 4/23/02, and not Login 4/23/02 & B1 houses one of: 24 Hours,Priority,Rush,Regular and not Service Rush, or Service 24 Hours, etc. you could enter in C1 simply: =WORKDAY(A1,VLOOKUP(B1,{"24 Hours",1;"Priority",2;"Rush",4;"Regular",6},2,0)) Note. WORKDAY is only available if the Analysis Toolpak add-in is activated thru Tools|Add-Ins. |
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Location: Miami, FL
Posts: 2
|
Thanks, the suggested formula works! kjolley
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|