+ Reply to Thread
Results 1 to 5 of 5

Check to see if a time is within a specified range

Hybrid View

  1. #1
    Registered User
    Join Date
    08-04-2011
    Location
    Washington State
    MS-Off Ver
    Excel 2007
    Posts
    3

    Check to see if a time is within a specified range

    Is there a way to check to see if a time is within a specified range by using a calculation. For example:

    Time Scheduled Time Performed
    3:00 3:07

    So I want to created a formula where I can check that the time performed is within plus/minus 15 min of the time schduled. I have over 500 times to check and will continue to have more and the would make things a lot simpler if I could make Excel check the times. I know I can use (.25/24) to equal 15 minutes, but I don't know how to say plus or minus or if that's even possible. The +/- symbol does not work. It returns an error.

    Thanks

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Check to see if a time is within a specified range

    Hi,

    How about:

    =IF(ABS(A2-B2)<=(0.25/24),"In Range","Out of Range")
    Where A2 and B2 are your Time Scheduled & Time Performed.

    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Registered User
    Join Date
    08-04-2011
    Location
    Washington State
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Check to see if a time is within a specified range

    YES! IT works, oh thank you so much!!!!

  4. #4
    Registered User
    Join Date
    08-04-2011
    Location
    Washington State
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Check to see if a time is within a specified range

    IS there a way to make the "out of range" be red text?

    I also have onother time parameter where the actual time is in a window
    Example:
    Actual time 4:00
    Window Earliest 12:00 Latest 8:00

    Is there a function for this?
    Last edited by MrsA; 08-04-2011 at 03:50 PM.

  5. #5
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Check to see if a time is within a specified range

    Perhaps, if you were to post a sample worksheet.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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