+ Reply to Thread
Results 1 to 5 of 5

Thread: IF Function Formula Based On Time.

  1. #1
    Forum Contributor
    Join Date
    10-05-2010
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2003
    Posts
    158

    IF Function Formula Based On Time.

    Hello,
    I need to create an IF function formula that the end result is TRUE if the time is between and includes 22:00 and 09:00. I've attempted this myself but I can't get it to work.

    Example:

    A1:is 23:00 B1:states A1 is TRUE based on the time

    A2:is 13:00 B2:states A2 is FALSE based on the time

    Thanks in advance for any and all help.
    Last edited by artiststevens; 12-15-2010 at 07:22 AM.

  2. #2
    Valued Forum Contributor jj72uk's Avatar
    Join Date
    03-22-2008
    Location
    Essex, England
    MS-Off Ver
    Work - Office 2000, Home - Office 2007E
    Posts
    360

    Re: IF Function Formula Based On Time.

    Maybe this will help?

    =IF(AND(A5<=TIME(22,0,0),A5>=TIME(9,0,0)),"TRUE","FALSE")

  3. #3
    Forum Contributor
    Join Date
    10-05-2010
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2003
    Posts
    158

    Re: IF Function Formula Based On Time.

    Hey jj72uk,
    Thanks for the help. I don't know if it's because Excel doesn't recognize negative time or what but I get FALSE for all times except 22:00 and 9:00. All numbers in between are FALSE. Do you have any other suggestions?

  4. #4
    Forum Contributor
    Join Date
    10-05-2010
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2003
    Posts
    158

    Re: IF Function Formula Based On Time.

    Any further help?

  5. #5
    Forum Contributor
    Join Date
    10-05-2010
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2003
    Posts
    158

    Re: IF Function Formula Based On Time.

    I was able to work with the formula you provided. Thanks.

+ 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.2.0