+ Reply to Thread
Results 1 to 14 of 14

Pichup date match with hours- expected date.

  1. #1
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2010
    Posts
    290

    Pichup date match with hours- expected date.

    Hi,

    If picup date is 01-04-2013 and delivery tat is 24 hours then expected delivery date should be 02-04-2013. if 02 april 2013 is sunday then expected date should be 03-04-2013.
    I have attached sample workbook.
    Hope some one understand what i want.
    Attached Files Attached Files
    Happy to Help

    VISHA

    Click *, if the suggestion helps you!
    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>> "Mark your thread as Solved"

  2. #2
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Pichup date match with hours- expected date.

    Hello,

    I assume you want to find the expected date, which should be pick up date plus the time in TAT, and plus one day if it falls into Sunday right?
    If so, you can try this formula
    Please Login or Register  to view this content.
    And here is the sample file.
    Attached Files Attached Files
    (copy pasta from Ford)
    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

    Regards,
    Lem

  3. #3
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2010
    Posts
    290

    Re: Pichup date match with hours- expected date.

    Hi,lem

    thanks for quick reply
    but check same date--
    PICKUP DATE TAT Expected Date of Delivery OUT PUT
    20-Apr-13 24 hrs 22-Apr-13 22-Apr-13
    20-Apr-13 48 hrs 22-Apr-13 23-Apr-13

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Pichup date match with hours- expected date.

    Try this:
    Please Login or Register  to view this content.
    Quang PT

  5. #5
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2010
    Posts
    290

    Re: Pichup date match with hours- expected date.

    Hi,Lem

    if pick up date is saturday and tat is 24 hours then expected date should monday.
    if pick update is friday and tat is 48 hours then expected date should monday.
    if pick update is Thursday and tat is 72 hours then expected date should monday.

  6. #6
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2010
    Posts
    290

    Re: Pichup date match with hours- expected date.

    Quote Originally Posted by bebo021999 View Post
    Try this:
    Please Login or Register  to view this content.
    Hi Bebo
    thanks but same happen here.

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Pichup date match with hours- expected date.

    Quote Originally Posted by visha_1984 View Post
    Hi,Lem

    if pick up date is saturday and tat is 24 hours then expected date should monday.
    if pick update is friday and tat is 48 hours then expected date should monday.
    if pick update is Thursday and tat is 72 hours then expected date should monday.
    So if pick up date is Sat and tat is 24 or 48 then expected date should monday, right?
    That Lemice's and mine did.

  8. #8
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Pichup date match with hours- expected date.

    I see that you wanted to count sunday as a free 24 hours.

    I have a question, is the hours in TAT has a maximum? Or it can be any number in the world?
    Last edited by Lemice; 04-26-2013 at 03:27 AM.

  9. #9
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Pichup date match with hours- expected date.

    daddylonglegs, where are you ?

  10. #10
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2010
    Posts
    290

    Re: Pichup date match with hours- expected date.

    Quote Originally Posted by Lemice View Post
    I see that you wanted to count sunday as a free 24 hours.

    I have a question, is the hours in TAT has a maximum? Or it can be any number in the world?

    No ,Lem the hours TAT has a maximum.

  11. #11
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Pichup date match with hours- expected date.

    Try this formula then
    Please Login or Register  to view this content.
    Another question:
    - 24 hours from April 1, 2013 is April 2, 2013.
    - 48 hours from April 1, 2013 is April 3, 2013.
    - None of the 3 date is Sunday, then why you expected it to be April 4? (it's written in your expected column)
    Last edited by Lemice; 04-26-2013 at 03:38 AM.

  12. #12
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Pichup date match with hours- expected date.

    Same question as Lemice, with my formula:
    Please Login or Register  to view this content.
    in which INT(....) count number of sunday occur

  13. #13
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Pichup date match with hours- expected date.

    Also another question:
    Monday, 1-Apr-2013 plus 78 hour (3.25 days) should be 4-Apr, while you expected it to be 5 -Apr?

  14. #14
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2010
    Posts
    290

    Re: Pichup date match with hours- expected date.

    Quote Originally Posted by bebo021999 View Post
    Also another question:
    Monday, 1-Apr-2013 plus 78 hour (3.25 days) should be 4-Apr, while you expected it to be 5 -Apr?
    Lemic and Bebo ,

    Its typing mistake from my side

    both formula works fine thank u very much

+ 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