+ Reply to Thread
Results 1 to 10 of 10

create all sequences without interruption of 2,3,4,5,6,7,8,9 numbers from 01 to 25

  1. #1
    Forum Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,177

    create all sequences without interruption of 2,3,4,5,6,7,8,9 numbers from 01 to 25

    create all sequences without interruption of 2,3,4,5,6,7,8,9 numbers from 01 to 25

  2. #2
    Forum Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,177

    Re: create all sequences without interruption of 2,3,4,5,6,7,8,9 numbers from 01 to 25

    create all sequences without interruption of 2,3,4,5,6,7,8,9 numbers from 01 to 25
    https://www.excelforum.com/attachmen...1&d=1698140517
    Attached Files Attached Files

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: create all sequences without interruption of 2,3,4,5,6,7,8,9 numbers from 01 to 25

    Try this:

    In first column A write number for sequence size.
    In column C write starting number (01 in this case).
    In column D use formula:

    =IF(C6="", MAX($B6:C6), IF(MOD(COUNT($B6:C6), $A6)=0, "", C6+1))

    If you want limit for number 25 then use:

    =IF(MAX($B6:C6)=25,"",IF(C6="",MAX($B6:C6),IF(MOD(COUNT($B6:C6),$A6)=0,"",C6+1)))
    Attached Files Attached Files

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: create all sequences without interruption of 2,3,4,5,6,7,8,9 numbers from 01 to 25

    If you update to Excel 365, its easy with a formula:

    Please empty all expected results and try in B5 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    In older Excel versions it will be a challenge to find a correct formula.
    Attached Files Attached Files

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: create all sequences without interruption of 2,3,4,5,6,7,8,9 numbers from 01 to 25

    Note that HansDouwe and mine solutions are different.

    I was referring to your example for number 3: 010203 030405 050607 070809
    maybe you actually wanted to get "all sequences" as HansDouwe suggest: 010203 020304 030405 040506

  6. #6
    Forum Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,177

    Re: create all sequences without interruption of 2,3,4,5,6,7,8,9 numbers from 01 to 25

    hello, we have a problem! It was my mistake mla explained the sequences example=
    In the number 9 there must be 02,03,04,05,06,07,08,09,10
    03.....11 04...12 Just like the others, there will be more sequences in each quantity, another example
    group 05- 02,03,04,05,06. 03....06
    Sorry for not explaining correctly, they are all sequences from each group

  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: create all sequences without interruption of 2,3,4,5,6,7,8,9 numbers from 01 to 25

    in that case this would be for older excel versions:

    =IF(MAX($B6:C6)=25,"",IF(C6="",OFFSET(D6,0,-1*$A6),IF(MOD(COUNT($B6:C6),$A6)=0,"",C6+1)))
    Attached Files Attached Files

  8. #8
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: create all sequences without interruption of 2,3,4,5,6,7,8,9 numbers from 01 to 25

    In the Excel 365 formula of post #4, I already assumed the explanation in Post #6.

    Here's another solution in case you can't update to Excel 365.

    Try in C6 and copy right and down:
    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,177

    Re: create all sequences without interruption of 2,3,4,5,6,7,8,9 numbers from 01 to 25

    hello HANS, PERFECT, thank you
    hello zbox, thank you

  10. #10
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: create all sequences without interruption of 2,3,4,5,6,7,8,9 numbers from 01 to 25

    You are Welcome!

    Thanks for the feedback and rep. . Glad to have helped.

+ 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: 4
    Last Post: 12-21-2022, 06:38 PM
  2. Numbers in Sequences
    By alexsantos1990 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-11-2022, 10:29 PM
  3. How to analyze combinations and then create all possible sequences of elements
    By JOAO12 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-15-2021, 11:45 PM
  4. detect uninterrupted sequences of 2,3,4,5,6,7,8,9 ... numbers.
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 01-11-2021, 02:21 PM
  5. detect within the 8 trios in sequences the sequences in the red color
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-27-2019, 04:34 PM
  6. Create unique list of sequences
    By ste2610 in forum Excel General
    Replies: 4
    Last Post: 09-13-2016, 12:45 PM
  7. Add sequences of positive then negative numbers
    By judoist in forum Excel General
    Replies: 6
    Last Post: 11-26-2005, 01:51 AM

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