+ Reply to Thread
Results 1 to 10 of 10

Using Time Formulas

  1. #1
    Registered User
    Join Date
    02-10-2014
    Location
    Cleveland, OH
    MS-Off Ver
    Excel 2007
    Posts
    51

    Using Time Formulas

    I'm trying to calculate a formula that will allow me to view additional time on site if it exceeds 2 hours. Please use the examples I've provided.Time Formula Examples.xlsx

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Using Time Formulas

    Is column C in hours?
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,101

    Re: Using Time Formulas

    you need to use
    =D2-C2
    so that you get a time and not #################
    =IF(E2<=F2,"","value of what")

    what value are you wanting to return
    also you need to enter 2hours into F2 - you can change theformat of the cell to display as required

    but you need to be in times AND not numbers
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    02-10-2014
    Location
    Cleveland, OH
    MS-Off Ver
    Excel 2007
    Posts
    51

    Re: Using Time Formulas

    ETAF -
    The value of additional time on site. So if E2 is greater than F2, I would like to see by how much. In the example, the value should be 2 hours additional.

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,101

    Re: Using Time Formulas

    this should do it
    =IF(E4<=F4,"",E4-F4)

    but you need the formats correct
    try using HH:MM:SS

  6. #6
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Using Time Formulas

    Hi GoGoe...
    Is this what you were trying to achieve..?
    Check the attached file...
    Attached Files Attached Files
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  7. #7
    Registered User
    Join Date
    02-10-2014
    Location
    Cleveland, OH
    MS-Off Ver
    Excel 2007
    Posts
    51

    Re: Using Time Formulas

    Time Formula Examples.xlsx

    None of these seem to be working for me. Please see the newly attached sheet with more information.

  8. #8
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,101

    Re: Using Time Formulas

    whats wrong with row 5 in your last example ?

  9. #9
    Registered User
    Join Date
    02-10-2014
    Location
    Cleveland, OH
    MS-Off Ver
    Excel 2007
    Posts
    51

    Re: Using Time Formulas

    Nothing, that's what it should look like, but I can't get the formulas to work and return a time in cell G5. I keep getting #####.

  10. #10
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,101

    Re: Using Time Formulas

    its your formatting
    they all have to be in time format
    and cant be in numbers
    you are taken times away

    Dates are just numbers
    1 day - 1
    and the time is a fraction of a day
    so 6 hours is a 1/4 of a day 0.25
    12 hours 1/2 a day 0.5

    so in E5
    =D5-C5
    and you can format as Hours
    HH:MM

    in F5 you need the time as a decimalfor 2 hours
    OR
    format the cell as time

    OR you can do as

    Vikas_Gautam has done and multiplied by 24
    and also used ABS to do that the sign - or +ve does not matter

    whats wrong with Vikas_Gautam solution ?
    with the calculation I put - to show the difference

    E?-F?

+ 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: 3
    Last Post: 11-21-2012, 05:47 AM
  2. Help with time formulas
    By JennyGP in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-11-2012, 12:15 PM
  3. Time formulas + Conditional formulas for time
    By asharris in forum Excel General
    Replies: 1
    Last Post: 09-18-2012, 09:17 AM
  4. Excel Formulas for Calculating Straight, Over Time & Double Time in Cost Estimating
    By redhairredhair in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-23-2010, 09:06 PM
  5. Time Formulas
    By metaltecks in forum Excel General
    Replies: 1
    Last Post: 03-29-2006, 07:51 PM

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