REPT output in rows

sharshra

Active Member
Joined
Mar 20, 2013
Messages
352
Office Version
  1. 365
I have a simple requirement of repeating a text in multiple rows. Something similar to REPT function but need the output in rows. I was looking for simple solution but it appears to be not as simple as getting the result in a column using REPT function. Please suggest a simple solution.

For example, REPT("trial",3) returns trialtrialtrial. I need the output in 3 rows as follows.
trial
trial
trial
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Great!!! Thanks, @Eric W, @djclements. One step further, how can I repeat the text in 2 or more columns?

For example, I have to repeat trial1, trial2 in 3 rows.
Original text -
excel problems.xlsx
TU
7trial1trial2
Sheet7


Repeat 3 times -
excel problems.xlsx
VW
7trial1trial2
8trial1trial2
9trial1trial2
Sheet7
 
Upvote 0

Forum statistics

Threads
1,221,526
Messages
6,160,340
Members
451,637
Latest member
hvp2262

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top