+ Reply to Thread
Results 1 to 3 of 3

TIME Calculation

  1. #1
    Registered User
    Join Date
    08-10-2016
    Location
    Ontario, Canada
    MS-Off Ver
    vista
    Posts
    1

    TIME Calculation

    I am trying to get a formula that will tell me in an IF statement if one time is greater than the other with a return of "Success" or "Fail"
    works fine with 24 hours, except when it goes past midnight because the first time is earlier (and therefore a smaller number)
    example.
    A6 = 01:00 (deadline)
    B6 = 23:00 (start time)
    C6 =IF(A6>B6,"SUCCESS","FAIL") results in a "FAIL", but I want it to say "Success" as it finished 2 hours before the deadline.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: TIME Calculation

    I think you'll be best served by including DATEs with your deadlines and start times.

    otherwise, it can get very ambiguos and challenging.

    Say
    A6 = 11:00 (deadline)
    B6 = 02:00 (start time)

    How can we know (or more precisely, how can Excel know) that B6 is not 2AM the next day, and therefor AFTER 11 AM ?

  3. #3
    Forum Contributor
    Join Date
    07-13-2015
    Location
    Quebec, Canada
    MS-Off Ver
    2013
    Posts
    232

    Re: TIME Calculation

    Well, is there a way Excel could know that it is a later day? I myself could not tell if it is a success or a fail is you just give me "01:00" and "23:00" as information

+ 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. Budgeting out percentages of time from a time card calculation sheet
    By mhadaway in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-24-2015, 05:05 PM
  2. [SOLVED] Excel calculation for adding time and calculating remaining time
    By mark888 in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 01-12-2015, 12:55 PM
  3. [SOLVED] Excel calculation for adding time and calculating remaining time
    By mark888 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-12-2015, 06:38 AM
  4. [SOLVED] Time entry on UserForm displaying inccorectly and calculation not working on the time.
    By Colin Smit in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-12-2014, 01:21 PM
  5. Time Calculation (Spanning Dates and using Military Time)
    By HospitalOfficer in forum Excel General
    Replies: 5
    Last Post: 07-29-2014, 12:18 PM
  6. Payroll time sheet calculation where time exceeds 24 hours
    By Rolo1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-23-2014, 08:57 AM
  7. Specific time period calculation from a time range
    By Khaldon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-18-2011, 06:44 AM

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