Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Calculating a date that accounts for weekends.

  1. #1
    New Member
    Join Date
    Apr 2002
    Location
    Miami, FL
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #2
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    83,637
    Post Thanks / Like
    Mentioned
    33 Post(s)
    Tagged
    6 Thread(s)

    Default


    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. #3
    New Member
    Join Date
    Apr 2002
    Location
    Miami, FL
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Thanks, the suggested formula works! kjolley

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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