+ Reply to Thread
Results 1 to 4 of 4

Assign numeric value to letters

  1. #1
    Registered User
    Join Date
    12-11-2010
    Location
    Australia
    MS-Off Ver
    Excel 2011
    Posts
    8

    Assign numeric value to letters

    Hi,

    I am trying to assign a numeric value to letters in excel (A=1, B=2, C=3, ect) and then be able to add 5 and then have excel give me the letter that corresponds to the number. eg. A = 1. so A+5 = 6. and 6 = F. I was just wondering how or if this could be done.

    Thanks in advance
    Last edited by Weeman975; 12-11-2010 at 10:23 PM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Assign numeric value to letters

    Try this in A2

    =CHAR(CODE("A")+ROW(A5))

    Drag/Fill Down

    Use
    =CODE("A")

    to return the Ascii value of the letter then add 5, by using Row(A5) as above we can increment the letter by 1 and add 5

    Hope this helps
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Assign numeric value to letters

    Place a letter in A1
    this will get it's value
    =CODE(LOWER(A1))-96

  4. #4
    Registered User
    Join Date
    12-11-2010
    Location
    Australia
    MS-Off Ver
    Excel 2011
    Posts
    8

    Re: Assign numeric value to letters

    Thanks so much guys. They both worked amazingly

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1