+ Reply to Thread
Results 1 to 4 of 4

converting letters to numbers

  1. #1
    Registered User
    Join Date
    05-08-2013
    Location
    New York, New York
    MS-Off Ver
    Excel 2003
    Posts
    1

    converting letters to numbers

    Hello All,

    I have a very basic understanding on Excel and have trolled through youtube and this site but I am still lost.
    If this topic has been covered already I apologize in advance.

    I am working with a web designer and he asked me to produce product ID numbers. I decided to use letters to numbers to better organize and keep track rather than using random numbers that could accidentally be duplicated.

    What I would like to do is type a word in excel and convert it to a stream of numbers. For example

    A would be 1
    B woud be 2
    C would be 3
    Z would be 26

    So when I type a particular car the word can be converted to a stream of numbers based on the above logic.
    When I type
    AUDI it would be converted to 12149
    BMW would be converted to 21323
    CHEVY would be converted to 3852225

    I'm not sure if this can be done but if there is a way to do it I know someone on here can teach me how.


    Thanks for your help.

  2. #2
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: converting letters to numbers

    try it
    =IFERROR(COLUMN(INDIRECT(MID(A1,1,1)&1)),"")&IFERROR(COLUMN(INDIRECT(MID(A1,2,1)&1)),"")&IFERROR(COLUMN(INDIRECT(MID(A1,3,1)&1)),"")&IFERROR(COLUMN(INDIRECT(MID(A1,4,1)&1)),"")&IFERROR(COLUMN(INDIRECT(MID(A1,5,1)&1)),"")

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: converting letters to numbers

    Very slick, Ghozi Just so the OP knows, that will do up to 5 letters, if they need more, all they have to do is add more...
    &IFERROR(COLUMN(INDIRECT(MID(A1,5,1)&1)),"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: converting letters to numbers

    continue with
    &IFERROR(COLUMN(INDIRECT(MID(A1,6,1)&1)),"") ..........an so on depend of how long data was

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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