ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Letter to number (https://www.excelbanter.com/excel-discussion-misc-queries/158708-letter-number.html)

[email protected]

Letter to number
 
I am trying to write a formula to take the values a cell and converts
it to a letter. For example, I have a cell that contains values from
1-5. I'd like to set it up so 1 = A, 2 = B, etc. Is there a simple
formula to do this?


Pete_UK

Letter to number
 
If A1 contains the number, try this in B1:

=CHAR(A1+64)

for upper case letters, or

=CHAR(A1+96)

for lower case.

You can copy the formula down if you have other values in column A
that you want to convert.

Hope this helps.

Pete

On Sep 18, 4:34 pm, "
wrote:
I am trying to write a formula to take the values a cell and converts
it to a letter. For example, I have a cell that contains values from
1-5. I'd like to set it up so 1 = A, 2 = B, etc. Is there a simple
formula to do this?




[email protected]

Letter to number
 
On Sep 18, 11:38 am, Pete_UK wrote:
If A1 contains the number, try this in B1:

=CHAR(A1+64)

for upper case letters, or

=CHAR(A1+96)

for lower case.

You can copy the formula down if you have other values in column A
that you want to convert.

Hope this helps.

Pete

On Sep 18, 4:34 pm, "

wrote:
I am trying to write a formula to take the values a cell and converts
it to a letter. For example, I have a cell that contains values from
1-5. I'd like to set it up so 1 = A, 2 = B, etc. Is there a simple
formula to do this?


That worked. Thanks!


Pete_UK

Letter to number
 
You're welcome, Andy.

Pete

On Sep 18, 5:47 pm, "
wrote:
On Sep 18, 11:38 am, Pete_UK wrote:





If A1 contains the number, try this in B1:


=CHAR(A1+64)


for upper case letters, or


=CHAR(A1+96)


for lower case.


You can copy the formula down if you have other values in column A
that you want to convert.


Hope this helps.


Pete


On Sep 18, 4:34 pm, "


wrote:
I am trying to write a formula to take the values a cell and converts
it to a letter. For example, I have a cell that contains values from
1-5. I'd like to set it up so 1 = A, 2 = B, etc. Is there a simple
formula to do this?


That worked. Thanks!- Hide quoted text -

- Show quoted text -





All times are GMT +1. The time now is 07:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com