+ Reply to Thread
Results 1 to 7 of 7

Detect If A Range Of Numbers Is Descending Downwards

  1. #1
    Forum Contributor
    Join Date
    10-29-2019
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    156

    Detect If A Range Of Numbers Is Descending Downwards

    Hi, I'm trying to find out how to detect if a range of numbers is descending downwards, ie 10,9,8,7,6,5,4,3,2,1.

    Are there any functions builtin to detect downward trends in a range of numbers, im not sure where to look, so all help appreciated.

    Thanks, much appreciated.

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: Detect If A Range Of Numbers Is Descending Downwards

    I expect it really depends on how you intend to define "descending downwards".

    I could see something as simple as =(A10-A1)<0 would return TRUE if the last number is smaller than the first number. Any data set where the last number is smaller than the first number would be considered "descending downwards".

    Or I could see something as complex as a full "slope test" (https://stattrek.com/regression/slope-test.aspx ) where I go through a full statistical test where I calculate slope of the line and other statistics and do the full hypothesis test "is the slope significantly less than 0".

    And, of course, other possibilities with varying levels of complexity. It all depends on how you intend to decide what it means for the data to descend downwards.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Contributor
    Join Date
    10-29-2019
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    156

    Re: Detect If A Range Of Numbers Is Descending Downwards

    Hi, I just need to detect a basic downward trend of numbers for now ie 5,4,3,2,1.

    I was thinking of using countif, was wondering if there were functions builtin specifically for detecting something as simple as 5,4,3,2,1.

    Thanks.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: Detect If A Range Of Numbers Is Descending Downwards

    To my knowledge, there is not a simple, plug and play built in function that detects "descending downwards". My first proposal [=(A10-A1)<0 or =(A5-A1)<0] would return TRUE for both sequences. Would that simple test be adequate for you, or do you need something more complex to account complexities in other data sets?

  5. #5
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Detect If A Range Of Numbers Is Descending Downwards

    Maybe you could try this. Assuming your values are in Cells A1:J1, In cell A2 you could enter:
    =TREND(A1:J1)
    Then in cell A3 try:
    =IFS(B2>A2,"Upward",B2<A2,"Downward",TRUE,"flat")

    This should match the "trend line" if you were to graph the points.

  6. #6
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Detect If A Range Of Numbers Is Descending Downwards

    I vote for an auxiliary column that contains the difference between each set of two rows.
    Use Countif on the 'auxiliary column' to determine if all the differences are positive.
    See the attached sample file.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Lewis
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Detect If A Range Of Numbers Is Descending Downwards

    Bounds decreasing: =A1>A10

    Generally decreasing: =SLOPE(A1:A10,ROW(A1:A10))<0

    Monotonically decreasing: =AND(A1:A9>A2:A10)

+ 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. Replies: 2
    Last Post: 10-16-2014, 02:38 PM
  2. Replies: 7
    Last Post: 02-27-2014, 10:56 PM
  3. Is it possible to count some numbers in a range(Descending order range)
    By amitgurus in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-22-2013, 10:59 AM
  4. Is it possible to count some numbers in a range(Descending order range)
    By amitgurus in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-22-2013, 08:41 AM
  5. Formatting Phone Numbers & Descending Equation
    By EXhelp1 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-09-2012, 04:12 PM
  6. vlookup Question about descending numbers
    By slx in forum Excel General
    Replies: 6
    Last Post: 11-12-2007, 04:46 PM
  7. Populate column cells with descending numbers
    By djarcadian in forum Excel General
    Replies: 1
    Last Post: 07-23-2007, 01:42 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