+ Reply to Thread
Results 1 to 7 of 7

Date and Time Calculations

  1. #1
    Registered User
    Join Date
    06-17-2009
    Location
    Las Vegas, Nv
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question Date and Time Calculations

    Hi I am a contractor and i have employees on several jobs in an area so that means a employee can work from 6:00 AM to 9:00 AM on one job and then go to another job and work from 9:30 AM to 12:30 PM and so on. What i need to do is figure out how to make excel calculate hours on the first job and then calculate how many on the next job.
    A B C
    1 In Out Discription
    2 6:00 AM 9:00 AM Worked on windows
    3 9:30 AM 12:00 PM Installed new door knobs
    4


    Thanks

    superclark
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-27-2008
    Location
    Dorset, UK
    Posts
    63

    re: Date and Time Calculations

    Change the cell format in cell D2 to match that of cell C2 and then perform a simple formula in cell e2 being =D2-C2.

  3. #3
    Registered User
    Join Date
    06-17-2009
    Location
    Las Vegas, Nv
    MS-Off Ver
    Excel 2007
    Posts
    3

    re: Date and Time Calculations

    Yes that will just - 6 from 9 witch is 3. I need it to count how many hours it was from 6:00 AM to 9:30 AM etc. and then have it total each line.

    Thanks

    superclark

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Date and Time Calculations

    Your question isn't really clear ... first you said you wanted to track time on a specific job which Bozo interpreted as I did and answered ... now you seem to be saying you want to track time on a job which is based not on the end time of the job but the start of the next job if it exists ? Assuming that's the case then perhaps:

    E2: =IF(C3,C3,D2)-C2

    The result will be a time value, set format of E to hh:mm

    If times cross midnight (unlikely) you can use use

    E2: =MOD(IF(C3,C3,D2)-C2,1)

  5. #5
    Registered User
    Join Date
    06-17-2009
    Location
    Las Vegas, Nv
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Date and Time Calculations

    Hi,

    I am sorry about my unclear question. I have spent a lot of time figuring this out but i did figure it out. I attached a blank copy of what i have built so you can see what i am saying. Fill free to use it if needed.

    Thanks
    Clark
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    01-27-2008
    Location
    Dorset, UK
    Posts
    63

    Re: Date and Time Calculations

    Glad you solved your issue. One small point. Look at your formula on the "Home" sheet, cell C7...suggest you use "=SUM('Day 1:Day 12'!D5)"....much neater!!

  7. #7
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Date and Time Calculations

    You can simplify your total time formula as well to :-

    =IF((OR(E29="",D29="")),0,MOD(E29-D29,1)*24)
    Regards
    Darren

    Update 12-Nov-2010 Still job hunting!

    If you are happy with the results, please add to our reputation by clicking the blue scales icon in the blue bar of the post.

    Learn something new each day, Embrace change do not fear it, evolve and do not become extinct!


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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