Question

I'm looking for an array formula to list out x number y's, where is x an integer input that is dynamic.

For example, if the number 10 is inputted. I want an array of cells to show y,y,y,y,y,y,y,y,y,y

If 4 is inputted then an array of y,y,y,y

Was it helpful?

Solution 2

With the desired array size in A1, place this formula in B1 and fill down:

=IF(ROW(B1)-ROW($B$1)<$A$1,"y","")

OTHER TIPS

You could use the rept function

=rept("y,",A1)

Where A1 contains your input number

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top