+ Reply to Thread
Results 1 to 4 of 4

To count the number of instances a certain value is crossed in excel

  1. #1
    Registered User
    Join Date
    11-16-2021
    Location
    Stuttgart, Germany
    MS-Off Ver
    MSOffice2013
    Posts
    2

    Arrow To count the number of instances a certain value is crossed in excel

    Hello Excel users,

    This is the first time I am writting here.
    I hope to get some help on the simple functionality.

    I have a problem where I need to find number of times the first occurance of certain value is found on the excel column (only on the rise).
    My column has values for eg from 0.1 till 0.25. Here, I need to find number of times the first occurance of the value went past 0.15 when there is a rise and need not count when the value 0.15 is crossed when there is a dip.

    here I am trying to provide example with values

    If the values in the cell are as follows,

    0.12
    0.13
    0.11
    0.10
    0.14
    0.15
    0.155
    0.156
    0.16
    0.158
    0.152
    0.140
    0.151
    0.150
    0.145

    In the above example, I need the result to give me '2' which is based on the 2 occurance of 0.15 when the value is on the rise as shown below in bold!
    0.12
    0.13
    0.11
    0.10
    0.14
    0.15
    0.155
    0.156
    0.16
    0.158
    0.152
    0.140
    0.151
    0.150
    0.145

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,746

    Re: To count the number of instances a certain value is crossed in excel

    This formula returns 2 for your data:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The range will have to be adjusted to reflect the actual rows that your data is in. Note the first range starts in row 2 and the second range starts in row 1.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    11-16-2021
    Location
    Stuttgart, Germany
    MS-Off Ver
    MSOffice2013
    Posts
    2

    Re: To count the number of instances a certain value is crossed in excel

    Thanks a lot! That worked like a magic! I am just trying to understand the logic behind.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,746

    Re: To count the number of instances a certain value is crossed in excel

    COUNTIFS counts the number of occurrences that meet one or more conditions. All conditions must be be for the occurrence to be counted. The conditions in this case are:

    A2:A16,">="&0.15

    The value is greater than or equal to 0.15

    A1:A15,"<"&0.15

    The preceding value is less than 0.15



    The ranges in a COUNTIFS formula must all be the same shape. In the first condition, it is all values starting with the second value. This is where we look to see if a value reached 0.15. In the second condition, we start with the first value, and go to the next-to-last value. This is where we look to see if a value is less than 0.15. Because both conditions must be true, the occurrence that will be counted if a number is >= 0.15 and the previous number is < 0.15.

+ 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. [SOLVED] Count number of unique instances
    By cmb80 in forum Excel General
    Replies: 7
    Last Post: 02-10-2020, 12:05 PM
  2. [SOLVED] Formula To Count Number Of Instances
    By mamuka12 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-03-2013, 12:45 AM
  3. Unique count of number of instances
    By arnab0711 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-08-2013, 03:09 AM
  4. How to count a number of instances
    By jslag in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-25-2010, 08:38 PM
  5. Count number of instances
    By paulcraigdainty in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-12-2008, 10:52 AM
  6. Count number of instances of an act. #
    By walke2jd in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-03-2007, 11:34 AM
  7. Count instances of a number in a column
    By k2extrem5 in forum Excel General
    Replies: 2
    Last Post: 01-19-2005, 06:30 PM

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