+ Reply to Thread
Results 1 to 4 of 4

Trying to use an IF function to return a value when a time is less than 01:00 in HH:SS

  1. #1
    Registered User
    Join Date
    03-15-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    9

    Question Trying to use an IF function to return a value when a time is less than 01:00 in HH:SS

    Hi

    I have a time displayed in HH:MM in a spreadsheet, I'm trying to use an IF function to return a YES or NO if the time is less than 01:00 i.e. 00:57, BTW I am using two ifs.

    =IF(I3<E3,IF(L3<01:00)),"Yes","Fail"

    Thnaks

    Jon

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Trying to use an IF function to return a value when a time is less than 01:00 in HH:SS

    Hi Jon & Welcome to the Forum,

    Maybe try...

    =IF(I3<E3,IF(L3<TIME(1,0,0),"Yes","Fail"))
    HTH
    Regards, Jeff

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Trying to use an IF function to return a value when a time is less than 01:00 in HH:SS

    Excel store 1 day = 24h = 1
    1h=1/24
    01:00 is time format= 1/24
    Try to replace 01:00 in your function by 1/24.
    Quang PT

  4. #4
    Registered User
    Join Date
    03-15-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Trying to use an IF function to return a value when a time is less than 01:00 in HH:SS

    Thanks Jeff, that does the job. Why wouldn't my way work?

    Cheers

    Jon

+ 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