Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to create a sequence of numbers with repeat and increment at intervals in google sheets

I need a single cell formula to create a sequence of numbers with a limit in Google Sheets as shown in the image.

3 rows repeat the value

then Increment by 5

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

enter image description here

>Solution :

Use this formula, you can adjust the Sequence() and REPT(rg&",",3) parameters to your need.

In this example Sequence(number_of_unique_numbers,columns,start_at,increment_by)

And REPT(rg&",",Repeat_N_times)

=ArrayFormula(FLATTEN(SPLIT(BYROW(SEQUENCE(3,1,5,5), 
 LAMBDA(rg, IF(rg="",,REPT(rg&",",3)))),",")))

enter image description here

Used formulas help
ARRAYFORMULAFLATTENSPLITBYROWSEQUENCELAMBDAIFREPT

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading