+ Reply to Thread
Results 1 to 10 of 10

Calculate Time

  1. #1
    Registered User
    Join Date
    07-25-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    48

    Calculate Time

    I need to have reps enter start times, end times and total pieces worked in 3 separate cells. I need to calculate the sums for total time spent on each task and total pieces worked. Lastly I want to calculate total pieces worked per hour.

    I want it to look something like this:

    Start Time End Time Total Pcs Worked
    8:00 8:30 10
    10:45 11:15 25
    3:20 4:20 15

    Total Time 2:00
    Total Pcs 50
    Pcs p/Hr 25

    Last question am I able to format time without having reps to a) not use military time and b) not have them enter time as AM/PM and still have excel calculate accurately?

    Thanks!

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Calculate Time

    I would suggest they enter in AM or PM to keep the data set clean and the logic for totals VERY simple. This is the example on the left.
    The example on the right essentially does what you asked, where if the end time is "before" the start point (meaning it rolled over the noon or midnight hour) then it adds 12 hours to make it PM.

    I would suggest using the first example and making people use AM/FM as it easy enough.

    See attached and let me know if you have any questions.
    Attached Files Attached Files
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Forum Contributor
    Join Date
    12-18-2016
    Location
    London
    MS-Off Ver
    Microsoft 2013
    Posts
    145

    Re: Calculate Time

    You can choose a different date format in the Format Cells dialog box, as explained in the following procedure. Similarly, if you type 9:30 a or 9:30 p in a cell, Excel will interpret this as a time and display 9:30 AM or 9:30 PM. Again, you can customize the way the time appears in the Format Cells dialog box.

    Please check the link and hope will help you!
    https://support.office.com/en-us/art...a-b4d30c528309

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,798

    Re: Calculate Time

    I would question the Pcs p/Hr side of things.

    For example, if the total time was 4:45 and there were 50 pieces of work. Would that be 12.5 per hr because there were 4 whole hours or 10.5 if you take into account the additional 45 mins?

    BSB

  5. #5
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Calculate Time

    Quote Originally Posted by BadlySpelledBuoy View Post
    I would question the Pcs p/Hr side of things.

    For example, if the total time was 4:45 and there were 50 pieces of work. Would that be 12.5 per hr because there were 4 whole hours or 10.5 if you take into account the additional 45 mins?

    BSB
    I assumed 10.5.

  6. #6
    Registered User
    Join Date
    07-25-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Calculate Time

    This is perfect- thanks!

    I will be going with the one on the right to keep it simple for my reps. We're much better off limiting keystrokes with this group.

    Happy New Year!

  7. #7
    Registered User
    Join Date
    07-25-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Calculate Time

    Yes 10.5... we need to have the Pcs/Hr be as accurate as possible and whole hours doesn't get us there.

  8. #8
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,798

    Re: Calculate Time

    Quote Originally Posted by mikeTRON View Post
    I assumed 10.5.
    Me too. But does that not mean the formula in cells J4 and V4 in your sample workbook are doing something different as they're dividing the total by just the hour element of the total time.

    Something like =(I4/H4)/24 in J4 would work and provide the answer we both assumed.

    BSB

  9. #9
    Registered User
    Join Date
    06-02-2012
    Location
    Basel, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Calculate Time

    See the attachment. I think I got it calculating correctly irrespective of whether the input is AM or PM.
    Attached Files Attached Files

  10. #10
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,819

    Re: Calculate Time

    Depending on when the sheet is completed, you may also double click for the time entries>
    Attached Files Attached Files
    Ben Van Johnson

+ 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: 7
    Last Post: 04-25-2020, 03:23 AM
  2. Replies: 3
    Last Post: 01-16-2016, 06:37 AM
  3. [SOLVED] [SOLVED] Calculate time worked inside Regular Hours and Over Time
    By myxamhatosis in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-07-2015, 09:16 PM
  4. [SOLVED] Calculate turnaround time for 9pm-6am working time & Start/End date may be on weekend
    By Wauiwa in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-26-2012, 02:36 PM
  5. Calculate finish time given start time, working hours and job duration
    By swanseaexcel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-23-2012, 03:00 PM
  6. Replies: 2
    Last Post: 04-27-2011, 08:21 AM

Tags for this Thread

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