Turn Numbers Into Letters

Lucas Rayala
Lucas Rayala ✭✭✭✭✭✭
edited 01/29/24 in Best Practice

Here's a handy formula to turn the numbers 1-26 into letters. Assume that the number you want to convert is in a column called "Number". In another column, create the following formula:

=RIGHT(LEFT("ABCDEFGHIJKLMNOPQRSTUVWXYZ", Number@row), 1)

If you need to increment these beyond Z, it gets a little more complicated, but here's how you can do it using the pattern, "...X, Y, Z, AA, AB, AC..." (going up to "ZZ", which is 702 character combinations):

=RIGHT(LEFT("ABCDEFGHIJKLMNOPQRSTUVWXYZ", ((Number@row - IF(MOD(Number@row, 26) = 0, 26, MOD(Number@row, 26))) / 26)), 1) + RIGHT(LEFT("ABCDEFGHIJKLMNOPQRSTUVWXYZ", IF(MOD(Number@row, 26) = 0, 26, MOD(Number@row, 26))), 1)