How to repeat one cell specific times to form an array?
That last part:
LEN(REPT(A1&", ",B1))-2)
Is being used to "clean-up". Without it, you get:
{100, 100, 100, }
With it, you get:
{100, 100, 100}
I'm wondering if the OP is trying to use this in another formula?
Biff
"Roger Govier" wrote in message
...
Hi Biff
Couldn't that be shortened to
=IF(COUNTA(A1:B1)<2,"","{"&REPT(A1&", ",B1)&"}")
--
Regards
Roger Govier
"T. Valko" wrote in message
...
Try this:
=IF(COUNTA(A1:B1)<2,"","{"&LEFT(REPT(A1&", ",B1),LEN(REPT(A1&",
",B1))-2)&"}")
Biff
"liups" wrote in message
ups.com...
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.
|