+ Reply to Thread
Results 1 to 3 of 3

If Statement for Time (hh:mm)

  1. #1
    Forum Contributor
    Join Date
    08-20-2009
    Location
    Plymouth, England
    MS-Off Ver
    Excel 2013
    Posts
    149

    If Statement for Time (hh:mm)

    Hi,

    I have a spreadsheet which calculates the time of each delayed plane leaving an airport. I have been able to calculate the delay. I now wish for the spreadsheet to separate the data dependant on length of delay. For example I have tried using an if statement along the lines of =if(A1<15,1,0) to return 1 if the flight was delayed by less than 15 minutes, but this returns 1 for all flights delayed, irrespective of their departure delay.

    Thanks,

    Luke
    Last edited by lukela85; 09-24-2010 at 01:59 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: If Statement for Time (hh:mm)

    Perhaps?

    =IF(B2<TIME(0,15,0),1,0)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    08-20-2009
    Location
    Plymouth, England
    MS-Off Ver
    Excel 2013
    Posts
    149

    Re: If Statement for Time (hh:mm)

    That's perfect. Thanks.

    Sorry about my rather basic Excel skills

+ 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