Home > Software engineering >  How can I increment a repeating number until 195 on Google Sheets?
How can I increment a repeating number until 195 on Google Sheets?

Time:12-04

How can I have it increment a number that repeats 12 times, so that it looks like this:

1

1

1

1

1

1

1

1

1

1

1

1

2

2

2

2

2

2

2

2

2

2

2

I've been trying to tweak this formula, but with no success: =ARRAYFORMULA(TRANSPOSE(SPLIT(QUERY(REPT(1&",",12), , 999^99), ",")))

Thanks.

CodePudding user response:

Try-

=ARRAYFORMULA(ROUNDUP(SEQUENCE(195)/12,0))

CodePudding user response:

Try

=arrayformula(INT(sequence(12*195,1,0,1)/12) 1)

enter image description here

  • Related