+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : "IF" function and time format

  1. #1
    Registered User
    Join Date
    12-19-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    4

    "IF" function and time format

    I am working to update weekly data for physicians viewing a Web-based training module. Data is sent to me every monday and I import into a master file to keep a running total. One of the fields in the spreadsheet sent to me is "time that the training module is viewed" (format: custom, h:mm:ss). The physicians are timed and only get credit for viewing if they are in the module for a minimum of 5 minutes. To track credit for viewing, I want to create a field with a logic "if" function stating "if the time viewed is 5 minutes or greater, then return '1', if the time viewed is less than 5 minutes, then return '0'". I have entered the function "=IF(K3<"0:05:00",1,0)" and I cannot get it to work properly. Any help on this will be appreciated.
    Last edited by mzbreski; 12-19-2011 at 07:21 PM.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: "IF" function and time format

    Hi and welcome to the board

    Try

    =IF(K3<TIME(0,5,0),1,0)

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: "IF" function and time format

    Hi mzbreski and welcome to forum.

    Try this:

    =IF(K3<"00:05";1;0)

    Hope to helps you
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    12-19-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: "IF" function and time format

    You are an absolute savior. I dont know if I ever would have figured that one out. I love working with formula puzzles like this and can usually figure things out with time, but this one had me stumped. THANK YOU!!

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: "IF" function and time format

    You're welcome

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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