How to repeat one cell specific times to form an array?
="{"&SUBSTITUTE(REPT(A1&", ",B1),",","",B1)&"}"
That still leaves a space after the last number:
{100, 100, 100 }
="{"&TRIM(SUBSTITUTE(REPT(A1&", ",B1),",","",B1))&"}"
{100, 100, 100}
Biff
"Teethless mama" wrote in message
...
="{"&SUBSTITUTE(REPT(A1&", ",B1),",","",B1)&"}"
"liups" wrote:
Hi,
I need to repeat the content of a cell to form an array, like this:
A1: 100
B1: 3
I want to put in C1 an array like this :{100, 100, 100}, but I don't
know how to write the formula, any ideas?
thank you very much.
|