Repeat text in sequence

Jstump

New Member
Joined
Oct 25, 2023
Messages
36
Office Version
  1. 365
Platform
  1. Windows
What formula can I use to get the one text to repeat 15 time then switch to another text and have it repeat 8 time then have then alternate another 8 times?
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Maybe
Excel Formula:
=LET(a,VSTACK(TOCOL(IF(SEQUENCE(,15),"A")),TOCOL(IF(SEQUENCE(,8),"B"))),TOCOL(IF(SEQUENCE(,8),a),,1))
 
Upvote 0
What if the text i need to repeat has quotations in it?
 
Upvote 0
Please post some sample data & expected results.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
As Fluff has stated, we would need to see more of what you have to start with, we don't know if you want to hardcode the values into the formula OR if you have the data on the spreadsheet as below:
Book1 (2).xlsx
ABCD
1TesxRpt TimesResult
2Text "one" here15Text "one" here
3Text two8Text "one" here
4Text "" 3 here8Text "one" here
5Text "one" here
6Text "one" here
7Text "one" here
8Text "one" here
9Text "one" here
10Text "one" here
11Text "one" here
12Text "one" here
13Text "one" here
14Text "one" here
15Text "one" here
16Text "one" here
17Text two
18Text two
19Text two
20Text two
21Text two
22Text two
23Text two
24Text two
25Text "" 3 here
26Text "" 3 here
27Text "" 3 here
28Text "" 3 here
29Text "" 3 here
30Text "" 3 here
31Text "" 3 here
32Text "" 3 here
Sheet2
Cell Formulas
RangeFormula
D2:D32D2=TOCOL(IF(SEQUENCE(,MAX(B2:B4))<=B2:B4,A2:A4,NA()),3)
Dynamic array formulas.
 
Upvote 0
Here is a screen shot. the text in column F is what i am trying to get to repeat. I copied your formula with the "A" and "B" in column E for reference. I could not get the add in to work in my excel.
 

Attachments

  • THIS ONE A.png
    THIS ONE A.png
    58.7 KB · Views: 7
Upvote 0
Where is the text coming from?
 
Upvote 0
I had to input the text manually into the cell then copy and paste down. I'm trying to get away from that and just have the formula input the text in sequence.
 
Upvote 0
But where is the text coming from, or do you want the text in the formula itself?
 
Upvote 0

Forum statistics

Threads
1,215,094
Messages
6,123,071
Members
449,092
Latest member
ipruravindra

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