+ Reply to Thread
Results 1 to 9 of 9

Thread: Excel formula for calculating TAT minus weekends

  1. #1
    Registered User
    Join Date
    06-16-2011
    Location
    sacramento, CA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Excel formula for calculating TAT minus weekends

    I need a formula to add 42 hours (1.75 days) to a cell that contains a date and time minus weekends. I'm currnetly using =A2+B2+2*(WEEKDAY(A2)=6)but when I enter 6/16/11 7:07 AM in A2 and want to add 1.75 in B2 business days it shows 6/18/2011 1:07 AM but I need it to show 6/20/2011 1:07 AM based on a 24 hour clock

  2. #2
    Registered User
    Join Date
    06-16-2011
    Location
    sacramento, CA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Excel formula for calculating TAT minus weekends

    The formula seems to work for all start days of the week except Thurdays, not sure why, any help would be wonderful.

  3. #3
    Registered User
    Join Date
    06-15-2011
    Location
    S. Carolina
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Excel formula for calculating TAT minus weekends

    Would this work for you? Just guessing.

    Something like =A2+B2+(WEEKDAY(A2)=6)+2

    Loppy

  4. #4
    Registered User
    Join Date
    06-16-2011
    Location
    sacramento, CA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Excel formula for calculating TAT minus weekends

    WOW, Loppy, that seemed to fix the issue I was having, TY so much for the quick reply, I had no idea it was going to be that easy. Thank you.

  5. #5
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2007
    Posts
    10,052

    Re: Excel formula for calculating TAT minus weekends

    I don't think that will work in all circumstances though - what if A2 is Friday at 07:00 and B2 is 1.75 - that formula will give you next Wednesday at 01:00 rather than next Tuesday.

    You could use WORKDAY like this

    =WORKDAY(A2,B2+MOD(A2,1))+MOD(A2+B2,1)

    where A2 is any weekday date/time
    Audere est facere

  6. #6
    Registered User
    Join Date
    06-15-2011
    Location
    S. Carolina
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Excel formula for calculating TAT minus weekends

    Actually, now looking at it further, Does your Friday come out correct now?

  7. #7
    Registered User
    Join Date
    06-15-2011
    Location
    S. Carolina
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Excel formula for calculating TAT minus weekends

    There ya go, Daddylonglegs got it. Very cool. Yeah, when I looked at mine after the fact, Friday's didn't work. heh.

  8. #8
    Registered User
    Join Date
    06-15-2011
    Location
    S. Carolina
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Excel formula for calculating TAT minus weekends

    NM, I understand it now. Thanks again.

    Lop
    Last edited by Loppy; 06-16-2011 at 03:49 PM.

  9. #9
    Registered User
    Join Date
    06-16-2011
    Location
    sacramento, CA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Excel formula for calculating TAT minus weekends

    Thank you Daddylonglegs, your formula seems to work correctly for any day, Thank you so much for the help.Good day to everone.

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