+ Reply to Thread
Results 1 to 7 of 7

Adding business days to a business day formula

Hybrid View

snappytim Adding business days to a... 04-21-2013, 12:33 AM
FDibbins Re: Adding business days to a... 04-21-2013, 12:38 AM
snappytim Re: Adding business days to a... 04-21-2013, 12:58 AM
snappytim Re: Adding business days to a... 04-22-2013, 07:50 AM
daddylonglegs Re: Adding business days to a... 04-22-2013, 08:50 AM
snappytim Re: Adding business days to a... 04-29-2013, 07:36 PM
FDibbins Re: Adding business days to a... 04-22-2013, 10:48 PM
  1. #1
    Registered User
    Join Date
    09-14-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    30

    Adding business days to a business day formula

    Hi everyone,

    I'm hopeful someone can have an answer to this problem I'm been wrestling with.

    I’d attach the spreadsheet but I keep on getting an error message when I try so I’ll describe the problem instead.

    The sheet tracks workflow – basically, checking that the work is completed within our own internal 10 business day target (SLA).

    The original formula was =WORKDAY((A5),Data!$B$3,Data!$G$3:$G$14)

    A5 has the date received
    Data!$B$3 looks up the SLA days
    Data!$G$3:$G$14 has the public holidays. Fortunately we work a Monday to Friday week.

    That was doing fine until I realised that the person who requested that we do the work may grant us extra days to do it (usually while they supply something they forgot).

    So, I added an additional column (D) to record the additional time permitted and then add those business days to the date calculated.

    I added D into the formula as below—
    =WORKDAY((A5+D5),Data!$B$3,Data!$G$3:$G$14)

    But that formula treats the additional days as calendar days.

    Does anyone have an idea as to how to change the formula so that the additional days In D are treated as just business days?

    I could just tell everyone that they need to think business days initially as that's what our SLA uses and then calendar days for an extension, but I'd love to be able for them to just think business days all the time.

    Thanks,

    Tim

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Adding business days to a business day formula

    try this...

    =WORKDAY(A5,Data!$B$3+D5,Data!$G$3:$G$14)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    09-14-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Adding business days to a business day formula

    Brilliant, absolutely brilliant! That's so much.

    I can see the logic now - thanks!

  4. #4
    Registered User
    Join Date
    09-14-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Adding business days to a business day formula

    Hi FDibbins,

    I'm hopeful you could help with the 2nd part of the problem. I thought I could apply your answer to it, but I'm a bit lost.

    The formula is =WORKDAY(E5,INDEX(Data!$D$3:$D$24,MATCH(N5,Data!$A$3:$A$24,0)),Data!$G$3:$G$14)

    E5 is the start date
    Data!$D$3:$D$24 is the timeframe related to the activities at Data!$A$3:$A$24 and
    Data!$G$3:$G$14 contains the holidays
    on the spreadsheet, the extra business days are at H5

    I tried E5+H5 but it treated them as calendar days.

    It's the same situation – I need to add those days into the system – and have them treated as business days.

    This one seems somewhat more tricky – do you have answer or should I posted as a separate question?

    Tim

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,695

    Re: Adding business days to a business day formula

    I think you need to add D5 to the INDEX/MATCH part, i.e.

    =WORKDAY(E5,INDEX(Data!$D$3:$D$24,MATCH(N5,Data!$A$3:$A$24,0))+D5,Data!$G$3:$G$14)

    ...or you could actually make it a little shorter with VLOOKUP

    =WORKDAY(E5,VLOOKUP(N5,Data!$A$3:$D$24,4,0)+D5,Data!$G$3:$G$14)
    Audere est facere

  6. #6
    Registered User
    Join Date
    09-14-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Adding business days to a business day formula

    And thanks from me, as well.

    Tim

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Adding business days to a business day formula

    Thanks DDL

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1