Calculating a date that accounts for weekends.

kjolley

New Member
Joined
Apr 29, 2002
Messages
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
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

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

Forum statistics

Threads
1,213,521
Messages
6,114,104
Members
448,548
Latest member
harryls

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top