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
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
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)))
If you update to Excel 365, its easy with a formula:
Please empty all expected results and try in B5 and copy down:In older Excel versions it will be a challenge to find a correct formula.Formula:Please Login or Register to view this content.
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
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
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)))
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.
hello HANS, PERFECT, thank you
hello zbox, thank you
You are Welcome!
Thanks for the feedback and rep. . Glad to have helped.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks