Domanda

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

È stato utile?

Soluzione 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","")

Altri suggerimenti

You could use the rept function

=rept("y,",A1)

Where A1 contains your input number

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top