With the desired array size in A1, place this formula in B1 and fill down:
=IF(ROW(B1)-ROW($B$1)<$A$1,"y","")
题
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
解决方案 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","")
其他提示
You could use the rept function
=rept("y,",A1)
Where A1 contains your input number