Generate Cylical Alphabetical Sequences

Cubist

Well-known Member
Joined
Oct 5, 2023
Messages
811
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Similar to this thread, but with additional conditions that the elements are alphabets and a chosen starting character.

Given:
1) the length of the array
2) number of elements in each cycle
3) the starting character.

In the case that it runs out of the alphabet, it should loop back at "A". See the expected output in D below.
Book1
ABCDE
1Length21Y
2Num of element in each cycle3Z
3Starting LetterYA
4Y
5Z
6A
7Y
8Z
9A
10Y
11Z
12A
13Y
14Z
15A
16Y
17Z
18A
19Y
20Z
21A
22
23
Sheet4
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
How about
Excel Formula:
=LET(m,MOD(SEQUENCE(B1,,0),B2)+CODE(B3),CHAR(IF(m>90,m-26,m)))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,212
Messages
6,123,651
Members
449,111
Latest member
ghennedy

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