Thanks:  0
Likes:  0

# Thread: Calculating a date that accounts for weekends.

1. 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

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. 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

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

& 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. Thanks, the suggested formula works! kjolley

## User Tag List

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•