+ Reply to Thread
Results 1 to 2 of 2

Count Consecutive Values within Range of Values

  1. #1
    Registered User
    Join Date
    03-10-2014
    Location
    Texas
    MS-Off Ver
    Excel 2013
    Posts
    4

    Count Consecutive Values within Range of Values

    Evening,

    I have temperatures 0.0°C that are collected every minute (for every minute of the year). Yes, 0.5M rows of data per year.

    I am attempting to count the number of maximum consecutive hours for a particular temperature range, say 5°C ± 0.5°C (4.5 to 5.5°C). I am using a data table, DRY_WeatherV2[ExtTmp °C].

    I have been trying to use combinations of frequency and if statements with arrays (CSE). I tried with IFS statement but I do not think that works with arrays.

    Please Login or Register  to view this content.
    However, this is lacking a great deal. First, it only looks for a single value, not the range. Secondly it only counts number of consecutive minutes. Though this is easy just to divide by 60 at the end.

    I've attached a snippet of the data that only has about 8,000 rows.

    Thoughts? Comments?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Count Consecutive Values within Range of Values

    Something like this? Entered as an array formula with CTRL+SHIFT+ENTER:

    Please Login or Register  to view this content.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

+ 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. Count of Values (Rows) of Most Recent Consecutive Streak (2+ Distinct Values)
    By ExcelForum88 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-13-2016, 12:26 PM
  2. Count of consecutive values in a row
    By Bruno Silva in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-12-2013, 09:19 AM
  3. Count consecutive values
    By tbelanger007 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-14-2013, 03:39 PM
  4. Replies: 4
    Last Post: 01-15-2012, 12:42 PM
  5. Count non-consecutive values
    By Kerrigan7 in forum Excel General
    Replies: 2
    Last Post: 11-10-2011, 09:34 AM
  6. Replies: 2
    Last Post: 10-05-2011, 12:30 PM
  7. Count First set of Consecutive Values
    By sushi637 in forum Excel General
    Replies: 3
    Last Post: 05-19-2010, 03:05 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