+ Reply to Thread
Results 1 to 6 of 6

Time formula for job

  1. #1
    Registered User
    Join Date
    08-28-2004
    Posts
    19

    Time formula for job

    Hi everyone,

    Cell P41 (formatted in TIME) 28:44:16 (hh:mm:ss) -INPUT cell
    Need Cell Q41 to have the hours worked in a day - INPUT cell
    Cell R41 (FORMULA cell) would take the two (2) cells and come up with the amount of days and time left over for the job.

    example -

    if P41 was 16:05:05 (total of time for job completion)
    and Q41 was 8 (hours that will be work on it a day)
    then the answer would be 2 days, 05 minutes, 05 seconds (The amount of days, with the reaming hours, minutes & seconds left over)

    Any assistance will be appreciated.


    Thank you,
    Craig

  2. #2
    Registered User
    Join Date
    01-22-2004
    Location
    UK
    Posts
    27
    Will this satisfy your need:

    =DAY(P41/Q41)&" day/s "&TEXT(MOD(P41,Q41),"HH:mm:ss")

    this will work if Q41 is formatted as time i.e. 08:00

    if you want to use just a number you can use this formula

    =DAY(P41/(Q41/24))&" day/s "&TEXT(MOD(P41,(Q41/24)),"HH:mm:ss")

    let me know

  3. #3
    Registered User
    Join Date
    08-28-2004
    Posts
    19
    Thank you dcronje.

    Thank you,
    Craig

  4. #4
    Registered User
    Join Date
    08-28-2004
    Posts
    19
    Was working with this formula and I've noticed an error in the answer.

    In cell P41 it read 292:35:05
    I input 8:00:00 (the format for the cell is [h]:mm:ss

    Now the answer in cell (R41) is 5 day/s 04:35:05.

    Shouldn't it be somewhere in the way of 36+ days?

    Anyone?

    Thank you,
    Craig

  5. #5
    Registered User
    Join Date
    01-22-2004
    Location
    UK
    Posts
    27
    change "day" to "int"


    =INT(P41/Q41)&" day/s "&TEXT(MOD(P41,Q41),"HH:mm:ss")

  6. #6
    Registered User
    Join Date
    08-28-2004
    Posts
    19
    Thank you dcronje.

    That is what I'm looking for.

    Thank you,
    Craig

+ 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