R Ri0 New Member Jun 22, 2012 #1 Would it be possible to add a separator in the rept function so that my data would show 5 I's then a space, then 5 more I's? =rept("I",10) IIIII IIIII instead of IIIIIIIIII
Would it be possible to add a separator in the rept function so that my data would show 5 I's then a space, then 5 more I's? =rept("I",10) IIIII IIIII instead of IIIIIIIIII
R Ri0 New Member Jun 22, 2012 #3 SirJB7 We are on the right path. I want always to only have 5 I's and then a space. so if a cell has 13 it would look like IIIII IIIII III
SirJB7 We are on the right path. I want always to only have 5 I's and then a space. so if a cell has 13 it would look like IIIII IIIII III
SirJB7 Excel Rōnin Jun 22, 2012 #4 Hi, Ri0! Glad you solved it. Thanks for your feedback and welcome back whenever needed or wanted. Regards!
Hi, Ri0! Glad you solved it. Thanks for your feedback and welcome back whenever needed or wanted. Regards!
R Ri0 New Member Jun 22, 2012 #5 I just solved it, how did you know? =REPT(REPT("I",B2/(B2/5))&" ",B2/5)&REPT("I",MOD(B2,5))
SirJB7 Excel Rōnin Jun 22, 2012 #6 Hi, Ri0! I knew it because that with the trick of the chained REPT your original question was solved. You didn't mention firstly a 13 length string. But glad you solved it too. Regards!
Hi, Ri0! I knew it because that with the trick of the chained REPT your original question was solved. You didn't mention firstly a 13 length string. But glad you solved it too. Regards!
N NARAYANK991 Excel Ninja Jun 22, 2012 #7 Hi , Try this : =REPT(REPT("I",5)&" ",INT(A1/5))&REPT("I",MOD(A1,5)) where A1 contains the number of repetitions that you want. Narayan
Hi , Try this : =REPT(REPT("I",5)&" ",INT(A1/5))&REPT("I",MOD(A1,5)) where A1 contains the number of repetitions that you want. Narayan