help with formula to repeat sequence of text

locksmith55

New Member
Joined
Mar 6, 2022
Messages
22
Office Version
  1. 365
Platform
  1. Windows
MREXECL REPEAT SEQUENCE OF TEXT.xlsx
ABCDEF
1CitiesTimes to repeat sequence3HOW I WANT IT TO LOOK
2TokyoTokyo
3KyotoKyoto
4OsakaOsaka
5SapporoSapporo
6NagoyaNagoya
7KobeKobe
8FukuokaFukuoka
9Tokyo
10Kyoto
11Osaka
12Sapporo
13Nagoya
14Kobe
15Fukuoka
16Tokyo
17Kyoto
18Osaka
19Sapporo
20Nagoya
21Kobe
22Fukuoka
Sheet1
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Book1
ABCDEFGHI
1CitiesTimes to repeat sequence3HOW I WANT IT TO LOOK
2TokyoTokyoTokyo
3KyotoKyotoKyoto
4OsakaOsakaOsaka
5SapporoSapporoSapporo
6NagoyaNagoyaNagoya
7KobeKobeKobe
8FukuokaFukuokaFukuoka
9TokyoTokyo
10KyotoKyoto
11OsakaOsaka
12SapporoSapporo
13NagoyaNagoya
14KobeKobe
15FukuokaFukuoka
16TokyoTokyo
17KyotoKyoto
18OsakaOsaka
19SapporoSapporo
20NagoyaNagoya
21KobeKobe
22FukuokaFukuoka
23
Sheet3
Cell Formulas
RangeFormula
H2:H22H2=LET(rws, ROWS(A2:A8), INDEX(A2:A8, MOD(SEQUENCE(rws*D1)-1, rws)+1))
Dynamic array formulas.
 
Upvote 0
Solution

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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