+ Reply to Thread
Results 1 to 9 of 9

Lowest and highest time in EXCEL

  1. #1
    Registered User
    Join Date
    08-04-2012
    Location
    Calgary Alberta
    MS-Off Ver
    Excel 2010
    Posts
    9

    Lowest and highest time in EXCEL

    I have a columns with times (in miuntes) formatted to show me minutes only and at the bottom I would like to have
    the time that took the longest =large(A2:A31,1) and it seams to work fine
    but when I do =min(A2:A31) to find the time which took the shortest time to do - it will not show me the true answer

    Please help me - this is the example in column A

    0 - 12 Mins
    0 - 14 Mins
    0 - 14 Mins
    0 - 15 Mins
    0 - 13 Mins
    0 - 13 Mins
    0 - 10 Mins
    0 - 11 Mins
    0 - 12 Mins
    0 - 07 Mins
    0 - 11 Mins
    0 - 14 Mins
    0 - 13 Mins
    0 - 13 Mins
    0 - 16 Mins

    0 - 12 Mins (this is the answer it comes up with as the shortest time!! when it should be 0 - 07 Mins)
    0 - 16 Mins (this works with the "large" function)

  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
    52,946

    Re: Lowest and highest time in EXCEL

    if the data in the cells is in fact 0-16 etc, then this is text, not value, and a function like =min() only works on values. also, i suspect that the results you got from the =large() function was purely coincidentale, for the same reason.

    try convert your text to values using something like...
    =MID(H1,5,2)
    and then try your fucntions again
    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
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Lowest and highest time in EXCEL

    With FDibbins suggestion use ..

    =MID(H1,5,2)*1 just to enusre that text (if any) is converted to number.
    You could then use the Large(Range,1) or Max(Range) & Small(Range,1) or Min(Range) formula
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Registered User
    Join Date
    08-04-2012
    Location
    Calgary Alberta
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Lowest and highest time in EXCEL

    Quote Originally Posted by Ace_XL View Post
    With FDibbins suggestion use ..

    =MID(H1,5,2)*1 just to enusre that text (if any) is converted to number.
    You could then use the Large(Range,1) or Max(Range) & Small(Range,1) or Min(Range) formula
    Hi FDibbins

    The values that I have given are a result of a basis formula from two times on another sheet - starting time and finishing time. So to answer your question the values in this column are actually time based. I also thought that the Large function has coincidently worked, but was not sure why??

    Any thoughts??

  5. #5
    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
    52,946

    Re: Lowest and highest time in EXCEL

    what is the exact value in the cell? press F2, then F9 (to calculate the cell) and then copy the answer here please?

    either that, or upload a sample of what you are working with?

  6. #6
    Registered User
    Join Date
    08-04-2012
    Location
    Calgary Alberta
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Lowest and highest time in EXCEL

    Hi There FDibbins

    I have attached the file. Sheet one contains all the times, and sheet 2 contains the results, which are used to conditional format best times & longest time for each person (A-E).

    I know I am close but just cannot seem to work it out.

    Thank you again
    Attached Files Attached Files

  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
    52,946

    Re: Lowest and highest time in EXCEL

    I used this on just a small sample, and it worked fine. extend it to the range you need....

    =LARGE((C31,C27,C25,C22,C19),1)
    =MIN(C31,C27,C25,C22,C19)

    let me know how that works for you?

  8. #8
    Registered User
    Join Date
    08-04-2012
    Location
    Calgary Alberta
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Lowest and highest time in EXCEL

    Tried it and it did not work for me

    On my attachment on SHEET 3 column D, the lowest time is 7 minutes and it still shows me 12 minutes. infact your method showed the same results as =MIN(D2:D31)

  9. #9
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Lowest and highest time in EXCEL

    The problem seems to be in calculation of your time on Sheet1. Your current formula adds 1 full day even if both start and end times are on the same day, although since your format shows only hours and minutes, it is difficult to spot.

    Change your formula in B3 to...
    =IF(H2-G2=0,"",IF(H2="","",IF(HOUR(H2)<HOUR(G2),((A2+1)+H2)-(A2+G2),H2-G2))) and copy across relevant cells.

    You should then be able to find Min & MAX values easily

  10. #10
    Registered User
    Join Date
    08-04-2012
    Location
    Calgary Alberta
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Lowest and highest time in EXCEL

    THANK YOU, THANK YOU, thank you, I feel like such a fool

    IT WORKED!!!!!!!!

+ 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