+ Reply to Thread
Results 1 to 9 of 9

Formula to convert number to alphabet

  1. #1
    Forum Contributor
    Join Date
    03-19-2010
    Location
    singapore
    MS-Off Ver
    Excel 2019
    Posts
    179

    Formula to convert number to alphabet

    looking for a formula that can be convert the number to the alpha .
    example A=1 , B=2, C=3, D=4, E=5...
    when i key in 34.21 , it will show CD.BD

    thks in advance
    Last edited by choy96; 09-13-2014 at 12:54 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Formula to convert number to alphabet

    There is not a built in formula or function in Excel that does this, but we can create one and add it to your workbook.

    Please Login or Register  to view this content.
    How to install the User Defined Function:

    1. Open up your workbook
    2. Get into VB Editor (Press Alt+F11)
    3. Insert a new module (Insert > Module)
    4. Copy and Paste in your code (given above)
    5. Get out of VBA (Press Alt+Q)
    6. Save as a macro-enabled workbook


    If you were to type 34.21 in cell A2, then this formula in B2 would now give you your desired results:

    =NumbersToLetters(A2)
    Last edited by JBeaucaire; 09-06-2014 at 02:22 AM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    03-19-2010
    Location
    singapore
    MS-Off Ver
    Excel 2019
    Posts
    179

    Re: Formula to convert number to alphabet

    ALREADY PASTE THE AS ABOVE INTO VBA AND SAVE AS MACRO-ENABLE. results become #NAME? WHY ?

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Formula to convert number to alphabet

    You didn't post a workbook for me to check your work. I'd guess you didn't follow the instructions exactly and posted the code in the wrong kind of module. But I'm only guessing.

  5. #5
    Forum Contributor
    Join Date
    03-19-2010
    Location
    singapore
    MS-Off Ver
    Excel 2019
    Posts
    179

    Re: Formula to convert number to alphabet

    EXAMPLE-ENABLE.xlsm

    this is the attachment.

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Formula to convert number to alphabet

    You need to follow these steps to make the UDF suggested by JBeaucaire work correctly.
    Open your workbook --> Press Alt+F11 to open VBA editor --> On the VBA editor window --> Insert --> Module --> Paste the code given in post#2 in the code window --> Close the VBA editor --> Save your workbook as Excel Macro-Enabled Workbook --> Done.

    Now you can use it like this.....
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  7. #7
    Forum Contributor
    Join Date
    03-19-2010
    Location
    singapore
    MS-Off Ver
    Excel 2019
    Posts
    179

    Re: Formula to convert number to alphabet

    Done ... Thks. My problem is although i have save as macro enable , it aslo need to press on menu "yes" to enable macro.

  8. #8
    Forum Contributor
    Join Date
    03-19-2010
    Location
    singapore
    MS-Off Ver
    Excel 2019
    Posts
    179

    Re: Formula to convert number to alphabet

    how to add the . to convert it become X ?
    example example A=1 , B=2, C=3, D=4, E=5...
    when i key in 34.21 , it will show CDXBD

  9. #9
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Formula to convert number to alphabet

    Try this.....
    Please Login or Register  to view this content.

+ 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] Convert Interger number to column Alphabet
    By rizmomin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-08-2014, 08:05 AM
  2. [SOLVED] how to convert numeric into alphabet
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-06-2005, 10:05 PM
  3. how to convert numeric into alphabet
    By fong in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  4. how to convert numeric into alphabet
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 11:05 AM
  5. how to convert numeric into alphabet
    By fong in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM

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