+ Reply to Thread
Results 1 to 12 of 12

Change letters into specific Numbers

  1. #1
    Registered User
    Join Date
    07-04-2014
    Location
    canada
    MS-Off Ver
    Office Pro Plus 2019
    Posts
    9

    Change letters into specific Numbers

    Hello,

    I searched and searched and could find 0 information on this, so here I am asking for your genius help!

    I am trying to figure out the Formula to change letters into specific numbers.
    I want To type a word in column A and the result in column B to be the string of numbers that correspond to that words letters.
    Based on 1=A,J,S; 2=B,K,T; 3=C,L,U; 4=D,M,V; 5=E,N,W; 6=F,O,X; 7=G,P,Y; 8=H,Q,Z, 9=I,R

    examples: So, If I enter BIRD into column A the result in column B would be 2994
    or if I entered GEORGE BEAUFORT in column A the result in column B would be 756975 25136692 (The space is not required for what I need so the result could (preferably) be 75697525136692)

    Thank you so much, in advance!
    SS

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,189

    Re: Change letters into specific Numbers

    Please Login or Register  to view this content.
    =lettertinum(A1)
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Registered User
    Join Date
    07-04-2014
    Location
    canada
    MS-Off Ver
    Office Pro Plus 2019
    Posts
    9

    Re: Change letters into specific Numbers

    Hi JohnTopley,

    Thank you for your reply. I do not really understand what that means.
    I am at a "beginner" level when it coms to this stuff.
    I was hoping for just a formula. But if that is not possible, more specific instruction would be SUPER helpful!
    Thank you!
    SS

  4. #4
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: Change letters into specific Numbers

    This is a bit of VB that you would add by Hitting ALT+F11 on your keyboard.

    Right click on the sheet in the Project Explorer in the upper left of the new window that came up.
    Hover over INSERT and SELECT MODULE

    Paste the code into that MODULE. Once done you can close the Visual Basic Editor window.

    The formula is now active ONLY in the book you add it to. =LetterToNum(CellReference) and it will convert the string to the values as you have outlined.

    To do this in a formula without a custom function like JohnTopley provided would be a rather gross formula in length...so if this is a viable solution for what you need... I would definitely go this route!
    -If you think you are done, Start over - ELeGault

  5. #5
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,408

    Re: Change letters into specific Numbers

    Try this formula Cell B1 , Drag down

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,189

    Re: Change letters into specific Numbers

    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-04-2014
    Location
    canada
    MS-Off Ver
    Office Pro Plus 2019
    Posts
    9

    Re: Change letters into specific Numbers

    Quote Originally Posted by wk9128 View Post
    Try this formula Cell B1 , Drag down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    WK9128, This did Not work.
    But thank you soooo Much for trying!

  8. #8
    Registered User
    Join Date
    07-04-2014
    Location
    canada
    MS-Off Ver
    Office Pro Plus 2019
    Posts
    9

    Re: Change letters into specific Numbers

    Quote Originally Posted by ELeGault View Post
    This is a bit of VB that you would add by Hitting ALT+F11 on your keyboard.

    Right click on the sheet in the Project Explorer in the upper left of the new window that came up.
    Hover over INSERT and SELECT MODULE

    Paste the code into that MODULE. Once done you can close the Visual Basic Editor window.

    The formula is now active ONLY in the book you add it to. =LetterToNum(CellReference) and it will convert the string to the values as you have outlined.

    To do this in a formula without a custom function like JohnTopley provided would be a rather gross formula in length...so if this is a viable solution for what you need... I would definitely go this route!
    Thank you sooooo much! Perfect instructions! I got the code working AND now know how to do it!
    SS

  9. #9
    Registered User
    Join Date
    07-04-2014
    Location
    canada
    MS-Off Ver
    Office Pro Plus 2019
    Posts
    9

    Re: Change letters into specific Numbers

    Quote Originally Posted by JohnTopley View Post
    Please Login or Register  to view this content.
    =lettertinum(A1)
    THANK YOU!!! SOOOO MUCH!!! This worked great and is exactly what I needed!
    SS

  10. #10
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,408

    Re: Change letters into specific Numbers

    @shawnashannon You're Welcome. Glad to help . Thank You for the feedback

    There is no problem with the formula, please see the place painted in yellow
    Attached Files Attached Files

  11. #11
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,410

    Re: Change letters into specific Numbers

    Here is another formula that you can consider. This formula needs to be array-entered** in your XL2019 version of Excel...
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Rick Rothstein; 07-08-2022 at 09:35 PM.

  12. #12
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,410

    Re: Change letters into specific Numbers

    Using John Topley's excellent observation about the progression of letters as related to the numbers, there is a noticeably shorter, still array-entered** formula though, available to do what you want...
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Rick Rothstein; 07-08-2022 at 10:18 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] formula to replace numbers with specific letters
    By SPCC in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-02-2020, 01:20 PM
  2. [SOLVED] Change/Fix Numbers Abbreviations with Letters to Real Numbers
    By nicoan in forum Excel General
    Replies: 7
    Last Post: 02-11-2019, 06:03 AM
  3. [SOLVED] Average numbers after specific letters
    By jher001 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-29-2017, 02:08 PM
  4. [SOLVED] [Advanced] Change the numbers by letters
    By paulocsm in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-22-2015, 10:19 PM
  5. [SOLVED] Change numbers to letters across the top of spreadsheet
    By Noodle_Chow in forum Excel General
    Replies: 3
    Last Post: 10-23-2012, 05:39 AM
  6. Count specific characters with numbers or letters
    By hoppscrouse in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-19-2007, 09:02 AM
  7. [SOLVED] change column name from letters to numbers?
    By Jerry in forum Excel General
    Replies: 2
    Last Post: 06-28-2005, 03:05 PM

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