+ Reply to Thread
Results 1 to 6 of 6

Sliding Time Range

  1. #1
    Registered User
    Join Date
    04-14-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    8

    Sliding Time Range

    I need to be able to Identify any times that happened within 1 hours of another on a sliding scale so If a time occured at 13:40 and one at 14:00 it would count as a 1. I can count occurances within fixed hour time ranges but I need something that can show based on a sliding range. Attached is the excel file I am working on. I highlighted the times that should be able to be found for examples
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Sliding Time Range

    Like this?
    Excel Sample.xlsx

  3. #3
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Sliding Time Range

    =IF(((A3+B3)-(A2+B2))*60*24<=60,1,"") in cell C3 and dragged down will give you the 1's you can count. Still thinking about doing it as a countif in one formula.

  4. #4
    Registered User
    Join Date
    04-14-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Sliding Time Range

    Close. It did not account for Row 68&69.

  5. #5
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Sliding Time Range

    Hi JB,

    Gak67's solution works correctly. Check the workbook attached in Post #2.
    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

  6. #6
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Sliding Time Range

    Quote Originally Posted by jbmedic View Post
    Close. It did not account for Row 68&69.
    Check the way the date is entered in B69 and make it the same as the rest.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. sliding scale?
    By GardenGrow in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 03-30-2014, 08:50 PM
  2. [SOLVED] sliding scale???
    By GardenGrow in forum Excel General
    Replies: 6
    Last Post: 03-29-2014, 01:15 PM
  3. [SOLVED] Counting values in a time range - when the time range crosses midnight
    By dlocos in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-24-2014, 04:27 AM
  4. how to have a sliding formula
    By KrispRolls in forum Excel General
    Replies: 7
    Last Post: 05-01-2007, 01:51 PM
  5. How can I display a "sliding" range?
    By msouterblight1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-07-2005, 07:25 PM

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