+ Reply to Thread
Results 1 to 4 of 4

Time Calculation

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    05-19-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    111

    Time Calculation

    Hi
    In an Excel sheet from Q8:Q20 i have entered many timings ( like 9:15 AM, 11:45 AM, 3:00 PM, 5:00 PM, 7:15 PM, etc ) in many cells. Now can we have a formula where it calculates the minimum Time and the maximum time and then show the total minutes between between them.
    Like from the above example the minumum Time was 9:15 AM and Max was 7:15 PM and it should show how many minutes was there between two timings.

    Faisal

  2. #2
    Forum Contributor TechRetard's Avatar
    Join Date
    06-14-2009
    Location
    Houston, TX
    MS-Off Ver
    Excel 2010
    Posts
    202

    Re: Time Calculation

    This should work...

    =Max(Q8:Q20)
    to determine the max
    =min(Q8:Q20)
    to determine the min
    and then
    =60*(Max(Q8:Q20)-min(Q8:Q20))
    to determine the # of minutes between...note you will need to change the cell format to [h]:mm

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Time Calculation

    =MIN(Q8:Q20)
    =MAX(Q8:Q20)
    =MAX(Q8:Q20)-MIN(Q8:Q20)
    Format cells as [mm]:ss
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Contributor
    Join Date
    05-19-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    111

    Re: Time Calculation

    Ya it worked, but there is a small hiccup.
    The Time break normally is from 12 AM to 11:59 PM. It calculates min and max in between this. But what i want is the Minimum Time should be 12 PM and Maximum Time will be 11:59 AM.
    Most of our production happens between 4 PM and 5 AM in the morning. SO i want to calculate the Production hours between these time. So with the above formula if we give then the minimum time is the time entered after 12:00 Am. and this is not solving my problem.

+ 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