REPT output in rows

sharshra

Active Member
Joined
Mar 20, 2013
Messages
404
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

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Try:

Book1
A
1trial
2trial
3trial
4
Sheet8
Cell Formulas
RangeFormula
A1:A3A1=INDEX("trial",SEQUENCE(3,,,0))
Dynamic array formulas.
 
Upvote 0
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,224,828
Messages
6,181,215
Members
453,024
Latest member
Wingit77

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