+ Reply to Thread
Results 1 to 12 of 12

Check if the values of a list are in progressive order.

  1. #1
    Registered User
    Join Date
    05-31-2012
    Location
    Paris
    MS-Off Ver
    Excel 2007
    Posts
    48

    Check if the values of a list are in progressive order.

    Hello,

    I have several series of 13 figures (from 0 to 20), such as :

    0 0 0 14 18 3 3 0 0 0 0 0 1

    I would like to filter those series with the following condition :

    Each figure (except the zeros) should be higher or equal to the first figure (found on the right) which is not a zero.
    In the example :

    14 should be higher or equal to 18 : FALSE
    8 should be higher or equal to 3 : TRUE
    3 should be higher or equal to 3 : TRUE
    3 should be higher or equal to 1 : TRUE

    So, the serie is FALSE, due to the fact that 14 is not higher than 18.

    Thanks in advance for your kind help.
    Best.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Check if the values of a list are in progressive order.

    Where do you get 8 from? The figure is 18
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    05-31-2012
    Location
    Paris
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: Check if the values of a list are in progressive order.

    Woops. Sorry.

    You are right, it is 18 instead of 8.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Check if the values of a list are in progressive order.

    Can you please show it in excel with expected output for better understanding of your data structure.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Valued Forum Contributor
    Join Date
    12-14-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    439

    Re: Check if the values of a list are in progressive order.

    Hi Askalian,

    I use an array formula. Please see attachment.

    Regards
    huuthang
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    05-31-2012
    Location
    Paris
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: Check if the values of a list are in progressive order.

    Quote Originally Posted by huuthang_bd View Post
    Hi Askalian,

    I use an array formula. Please see attachment.

    Regards
    huuthang
    Hi, Huuthang.

    Thanks for the help. I have tried this example and it seems not to work :

    0 15 2 0 13 7 0 1 0 0 0 1 1 is given as TRUE and it is FALSE

    Maybe it will be more simpler if the figures are in cells like in the attached file.
    Thanks so much.

    Askalian.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-31-2012
    Location
    Paris
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: Check if the values of a list are in progressive order.

    Quote Originally Posted by :) Sixthsense :) View Post
    Can you please show it in excel with expected output for better understanding of your data structure.

    Hi, Sixthsense.

    Of course. I should have done it, you are right.
    Attached is the example file.

    Thanks in advance.
    Askalian
    Attached Files Attached Files

  8. #8
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Check if the values of a list are in progressive order.

    See if this workbook works for you.

    Test1 and Test2 are names, see the names manager.

    B2 is an array formula =, Confirm with Ctrl+Shift+Enter not just Enter, then drag Down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Column D is not required, I have included it only to show what the formula is actually analysing.

    [EDIT]
    I should have noticed the attachment in Post #6 before I posted this!!!!
    Attached Files Attached Files
    Last edited by Marcol; 01-19-2013 at 09:38 PM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  9. #9
    Valued Forum Contributor
    Join Date
    07-29-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    534

    Re: Check if the values of a list are in progressive order.

    If a UDF is acceptable, test the following:
    Attached Files Attached Files

  10. #10
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Check if the values of a list are in progressive order.

    Quote Originally Posted by Askalian View Post

    Maybe it will be more simpler if the figures are in cells like in the attached file.
    Thanks so much.

    Askalian.
    Try this Array formula in O3, confirm with Ctrl+Shift+Enter not just Enter, then drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    (Thanks to pgc01 - MrExcel MVP @ Mr Excel for the pointer)

    Now you have a solution either way ...
    See also post#8

  11. #11
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Check if the values of a list are in progressive order.

    I used a similar version but with COUNTIF rather than SUBTOTAL

    =SUMPRODUCT(B3:M3*(COUNTIF(OFFSET(N3,0,0,1,COLUMN(C3:N3)-COLUMN(C3)-COLUMNS(C3:N3)),">"&B3:M3)>0))=0

    Doesn't need CSE
    Audere est facere

  12. #12
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Check if the values of a list are in progressive order.

    Quote Originally Posted by daddylonglegs View Post
    I used a similar version but with COUNTIF rather than SUBTOTAL

    =SUMPRODUCT(B3:M3*(COUNTIF(OFFSET(N3,0,0,1,COLUMN(C3:N3)-COLUMN(C3)-COLUMNS(C3:N3)),">"&B3:M3)>0))=0

    Doesn't need CSE
    As is always DLL, you trump me, I'll take this onboard.

    Maybe there is a non-volatile solution somewhere?

    P.S. Thanks for the earlier compliment and +rep, I try as best as I can.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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