+ Reply to Thread
Results 1 to 8 of 8

Numerical value convert to Text (Not Words

  1. #1
    Registered User
    Join Date
    02-21-2016
    Location
    Manila
    MS-Off Ver
    2007
    Posts
    6

    Numerical value convert to Text (Not Words

    Guys,

    I'm looking for a way to convert numerical value at first cell into text values at second cell since I need a text code which I can only decipher. I already made some research and only found =Spellnumber function (VBA) which convert the numerical value into word value. The =Spellnumber function is the closes to what I want to happen but not in word value but in text value.

    Here is what I need to happen;

    I have a secret words "WUNKY PREFIX" and each letter represent a number as shown below.

    W = 1
    U = 2
    N = 3
    K = 4
    Y = 5
    P = 6
    R = 7
    E = 8
    F = 9
    I = 0
    X = .

    When I input numerical value of 123.45 at A1 cell. The B1 cell will show WUNXKY.

    Few more samples:

    3467 = NKPR
    83.562 = ENXYPU
    25903.31 = UYFINXNW
    887 = EER
    11 = WW


    I really appreciate for does who could help me. I need it to create a compilation of investment price, wholesale price, & retail price of each items. Thank you!

  2. #2
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Numerical value convert to Text (Not Words

    Paste this function in a module-
    Please Login or Register  to view this content.
    Now you can use this formula like this-
    Please Login or Register  to view this content.
    and this will return UYFINXNW
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,179

    Re: Numerical value convert to Text (Not Words

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

  4. #4
    Registered User
    Join Date
    02-21-2016
    Location
    Manila
    MS-Off Ver
    2007
    Posts
    6

    Re: Numerical value convert to Text (Not Words

    Both VBA Functions worked perfectly! Thank you! sourabhg98 & Phuocam

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,179

    Re: Numerical value convert to Text (Not Words

    You're welcome!
    You can convert from text to numbers:
    Please Login or Register  to view this content.
    Use...
    =TextToNum("UYFINXNW") return 25903.31

  6. #6
    Registered User
    Join Date
    02-21-2016
    Location
    Manila
    MS-Off Ver
    2007
    Posts
    6

    Re: Numerical value convert to Text (Not Words

    Thanks again Phuocam. I will invest on it for future use.

    By the way. Is it possible to add two little modification on NumtoText function:

    1. If no decimal value input at first cell, the second cell will still output "X" at end of the Text.
    2. When "." is input at first cell, the second cell will output "X" and "A" at end of the Text.

    Sample:
    1234.5 = WUNKXYA
    987.21 = FERXUWA
    1234 = WUNKX (no "." input, no "A" at the end of Text Output but "X" will be the end of the Text Output.)
    4574 = KYRKX


    I figured the Secret Code I'm using is easily decoded without extra text.

    Thank you in Advance!

  7. #7
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Numerical value convert to Text (Not Words

    You could add this line between Next and End Function

    Please Login or Register  to view this content.
    TextToNum would also need modifying in order to decipher the code.

  8. #8
    Registered User
    Join Date
    02-21-2016
    Location
    Manila
    MS-Off Ver
    2007
    Posts
    6

    Re: Numerical value convert to Text (Not Words

    Thank you jason.b75

    It work and this will do.

+ 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 numerical into text
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-12-2013, 09:35 PM
  2. how to convert numerical figure into text
    By ckchuah in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-07-2005, 06:05 PM
  3. [SOLVED] HOW TO CONVERT NUMERICAL VALUE IN TO ENGLISH TEXT
    By Paul B in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 07:05 PM
  4. [SOLVED] HOW TO CONVERT NUMERICAL VALUE IN TO ENGLISH TEXT
    By Paul B in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  5. HOW TO CONVERT NUMERICAL VALUE IN TO ENGLISH TEXT
    By KRISHNAMOHAN in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  6. [SOLVED] HOW TO CONVERT NUMERICAL VALUE IN TO ENGLISH TEXT
    By KRISHNAMOHAN in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. HOW TO CONVERT NUMERICAL VALUE IN TO ENGLISH TEXT
    By KRISHNAMOHAN in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  8. How do I convert numerical into words ?
    By Kapil in forum Excel General
    Replies: 3
    Last Post: 05-03-2005, 08:06 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