# assigning letters to unknown # of entries

#### almagg

##### Well-known Member
i have this list and the values that start with "NT" do not get counted.
and this is what they wanted originally and i had on the report.
now they want another column with letters assigned to all of the entries.
how would i deal with these letters? i am assuming it will involve ASCI characters but i never know how long the list will be and could possibly go into double letters(though it would not be monstrously long - the longest i see so far goes up to "U")

A_______NT#####
B___1___B####
C___2___A####
D_______NT#####
E___3___B####

thanks.

### Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

#### BrianB

##### Well-known Member
Don't know what you want really.
If you just want to get the first letter into another column something like

=LEFT(A1,1)

##### Well-known Member
maybe try (note: only works up to "IV" (that's only 256 rows). hopefully your list isn't that long):

Last edited:

##### Well-known Member
here's another one which goes to "ZZ" (which equates to 754 rows of data):

Code:
``=IF(ROW(A1)<=26,LOOKUP(ROW(A1),{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26;"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"}),LOOKUP(IF(ROUND((ROW(A1)/26-ROUNDDOWN(ROW(A1)/26,0))*26,0)=0,ROUNDDOWN(ROW(A1)/26,0)-1,ROUNDDOWN(ROW(A1)/26,0)),{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26;"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"})&LOOKUP(IF(ROUND((ROW(A1)/26-ROUNDDOWN(ROW(A1)/26,0))*26,0)=0,26,ROUND((ROW(A1)/26-ROUNDDOWN(ROW(A1)/26,0))*26,0)),{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26;"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"}))``

Replies
3
Views
154
Replies
10
Views
151
Replies
11
Views
475
Replies
6
Views
279
Replies
1
Views
171

1,129,814
Messages
5,638,493
Members
417,029
Latest member
lingx86

### 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.

### Which adblocker are you using?

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

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