Excel Short and Sweet Tip #1 (Alphabetic String) by David Hager

In many cases an alphabetic string is needed in certain Excel formula constructions. The easiest way to generate this string is with the following:

=TEXTJOIN(“”,,CHAR(64+ROW(1:26))) ‘ array-entered

which affords the string

“ABCDEFGHIJKLMNOPQRSTUVWXYZ”

Other character sets strings (such as alphanumeric) can be made in a similar manner.

 

 

Advertisements

2 thoughts on “Excel Short and Sweet Tip #1 (Alphabetic String) by David Hager

  1. Hans Knudsen

    Nice formula!
    I am from Denmark and so I wonder if there is a way to extend your formula so that it can generate the Danish alphabet which in addition to the English alphabet contains the letters Æ, Ø and Å = CHAR(64+{152;134;133}).

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s