+ Reply to Thread
Results 1 to 7 of 7

find most early time and most late finish time for each unique job name

  1. #1
    Registered User
    Join Date
    04-26-2015
    Location
    hong kong
    MS-Off Ver
    2010
    Posts
    3

    find most early time and most late finish time for each unique job name

    Dear,

    My boss ask me to generate report for most early start time and most late complete time of daily job within one month.
    Do someone can help how can I find the most early start time and most late finish time of each unique job name? Just like the attachment. Is there any formula can help this?
    Attached Images Attached Images

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: find most early time and most late finish time for each unique job name

    You have attached an image. That's not very easy to work with. We have to re-type your information before we can begin to address your problem. That will put a lot of people off completely. So...

    Please attach a sample workbook. Make sure there is enough data to demonstrate your need. Make sure your desired results are shown, mock them up manually if necessary. Remember to remove ALL confidential information first!!!

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: find most early time and most late finish time for each unique job name

    In Excel dates/times are just numbers formatted to look like dates/times.

    So, all you need to do is find the min and max date/time for the job.

    This example uses numbers but they could also be dates/times.

    Data Range
    A
    B
    C
    D
    E
    F
    G
    1
    Job #
    Start
    End
    Min Start
    Max End
    2
    Job1
    17
    22
    Job1
    6
    78
    3
    Job1
    6
    22
    Job2
    9
    85
    4
    Job1
    51
    58
    Job3
    16
    79
    5
    Job1
    31
    78
    6
    Job2
    58
    70
    7
    Job2
    84
    85
    8
    Job2
    18
    83
    9
    Job2
    9
    55
    10
    Job3
    76
    79
    11
    Job3
    16
    66
    12
    ------
    ------
    ------
    ------
    ------
    ------
    ------


    Enter this array formula** in F2:

    =MIN(IF(A$2:A$11=E2,B$2:B$11))

    Enter this array formula** in G2:

    =MAX(IF(A$2:A$11=E2,C$2:C$11))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Select F2:G2 and copy down as needed.

    You'll have to format the formula cells in the date/time style of your choice.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: find most early time and most late finish time for each unique job name

    The request was NOT easy to follow. But, I think that the earliest start time refers (based on the JPG) to the TIME, not the date/time; so a straightforward MIN/IF would not return the correct answer. In this particular case (the orange shaded job), itwould - as all the start times were 18:30. If I'm correct, this array formula is needed:
    =MIN(IF($A$2:$A$11=E2,MOD($B$2:$B$11,1)))

    The latest finish time is REALLY confusing me!! Does it mean the longest time difference between starting and finishing... or does it mean something else. Please explain!! In the attached sheet, I have assumed that it means the longest duration. Also, I think I have REALLY over complicated the formula, so others - feel free to jump in.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-26-2015
    Location
    hong kong
    MS-Off Ver
    2010
    Posts
    3

    Re: find most early time and most late finish time for each unique job name

    Dear Tony, thanks for your suggest, it fixed my problem.

  6. #6
    Registered User
    Join Date
    04-26-2015
    Location
    hong kong
    MS-Off Ver
    2010
    Posts
    3

    Re: find most early time and most late finish time for each unique job name

    Dear Glenn, you understand my question very well. Your suggest formula fixed my problem perfectly. Thanks very much.

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: find most early time and most late finish time for each unique job name

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 05-20-2023, 01:07 AM
  2. [SOLVED] Graph to chart how many times different vendors are early, on time, or late...
    By ekf23 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 04-18-2014, 03:46 PM
  3. Formula to Display Notification LATE, EARLY, ON TIME
    By Daryl10 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-12-2014, 06:27 PM
  4. [SOLVED] IF function: Early/On Time/Late Time vs. set window of time
    By hclark579 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-21-2014, 05:37 PM
  5. [SOLVED] Work Out If Finish Date/Time is Late - Excel 2003
    By db1966 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-01-2010, 11:48 AM

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