+ Reply to Thread
Results 1 to 16 of 16

change any given number to words

  1. #1
    Registered User
    Join Date
    02-06-2011
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    9

    change any given number to words

    hi there, i'm newbie in this forum.
    hopes i'm posting in the right forum....

    here is what i'm trying to make...

    when i enter any number (up to 10 digits) in cell A1, cell B1 will change this way....

    if the number is 982497 then in B1 will say "nine is first eight is second two is third four is fourth nine is fifth seven is sixth"

    first, second, third, is defining the appeared order of the number, BUT I NEED FORMULA THAT NOT JUST DEFINE THIS CONDITION, THAT I CAN CHANGE IT TO ANYTHING.

    the number is any numbers between 1-1,000,000,000.

    thanks.

    PLEASE CHECK THE ATTACHMENT TO UNDERSTAND WHAT I WANT.
    Attached Files Attached Files
    Last edited by aranechan; 02-07-2011 at 02:36 PM.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    re: change any given number to words

    Please post more examples, including the shortest and longest values you expect to deal with.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    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: change any given number to words

    One very basic way using helper columns (can be hidden) and one very long concatenation.(it needs 2007 or above)

    Toggle the +/- icon below the formula bar to show/hide the helper columns

    See the attached
    Attached Files Attached Files
    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.

  4. #4
    Registered User
    Join Date
    02-06-2011
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: change any given number to words

    Quote Originally Posted by Ron Coderre View Post
    Please post more examples, including the shortest and longest values you expect to deal with.
    emm,, i'm actually kinda confused to explain it in english.. (because i'm indonesian)
    hopes this will help...

    in cell A1 i can enter any number from 1-1,000,000,000

    1 = satu
    2 = dua
    3 = tiga
    4 = empat
    5 = lima
    6 = enam
    7 = tujuh
    8 = delapan
    9 = sembilan
    0 = (blank)

    (it's actually the words of numbers in Indonesian, like one, two, three, etc.)

    i define the order of number this way.... (right to left)

    first: dog
    second: cat
    third: snake
    fourth: owl
    fifth: worm
    sixth: mouse
    seventh: monkey
    eigth: fish
    ninth: eagle
    tenth: pigeon

    if i put 7564371 in cell B1 will say "tujuh monkey lima mouse enam worm empat owl tiga snake tujuh cat satu dog"

    another example, if i put 341 in cell B1 will say "tiga snake empat cat satu dog"

    if i just put 6, then "enam dog"


    if you dont mind, please explain how each of formulas work...

    thanks so much.
    Last edited by aranechan; 02-07-2011 at 11:16 AM.

  5. #5
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: change any given number to words

    Can you inform us about the purpose of this excercise ?
    Maybe there are many simpler alternatives that can perform the same thing.

    Please Login or Register  to view this content.
    Last edited by snb; 02-07-2011 at 11:18 AM.



  6. #6
    Registered User
    Join Date
    02-06-2011
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: change any given number to words

    Quote Originally Posted by snb View Post
    Can you inform us about the purpose of this excercise ?
    Maybe there are many simpler alternatives that can perform the same thing.
    emm,, it's like when we define the amount of money we paid for an items in the memo or receipt...

    like $2,983 is "two thousand and nine hundred eighty three dollar"

    but, because of some differences in my language and yours, i dont think there is a simply way for this...

  7. #7
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: change any given number to words

    I don't even understand your examples I'm afraid.

  8. #8
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: change any given number to words

    I don't think you know my native language.
    But now you are clear.
    You underestimated the question.
    You shouldn't only look at numbers but also at their position in a concatenation of numbers.

  9. #9
    Registered User
    Join Date
    02-06-2011
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: change any given number to words

    Quote Originally Posted by snb View Post
    I don't think you know my native language.
    But now you are clear.
    You underestimated the question.
    You shouldn't only look at numbers but also at their position in a concatenation of numbers.
    umm, sorry then...
    english i mean,, my english is not that good, so i'm kinda difficult to express what i really wanna say...

    ~still confused.

  10. #10
    Registered User
    Join Date
    02-06-2011
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: change any given number to words

    Quote Originally Posted by StephenR View Post
    I don't even understand your examples I'm afraid.
    it's kinda difficult for me to explain it, i'm sorry...

    if you dont mind, please open the attachment...
    it will gives you some examples... please try hard to understand it...
    Attached Files Attached Files

  11. #11
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: change any given number to words

    No, I was being dense. I understand now. Here is a custom function approach, so you would enter in a worksheet cell, e.g. =Subst(A1):
    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    02-06-2011
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: change any given number to words

    Quote Originally Posted by StephenR View Post
    No, I was being dense. I understand now. Here is a custom function approach, so you would enter in a worksheet cell, e.g. =Subst(A1):
    Please Login or Register  to view this content.
    umm, is that a code from vba??
    well, since i dont understand it, i cant use it...

    i need it in fully excel made formulas.

  13. #13
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: change any given number to words

    Why did you post in the programming forum then?

  14. #14
    Registered User
    Join Date
    02-06-2011
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: change any given number to words

    Quote Originally Posted by StephenR View Post
    Why did you post in the programming forum then?
    whoa, sorry. this is my first time in this webs.

    could you tell me, which forum should i post this kind of problems??

    sorry, really sorry.

  15. #15
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: change any given number to words

    See attached for a formula solution. I used lots of helper columns - everything in grey could be hidden, the results in orange.
    Attached Files Attached Files

  16. #16
    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: change any given number to words

    Try this I can't count very well in Indonesian, in fact I can't do it at all, this is the first time I've tried....

    Enter a number in Column A (Whole number, or Decimal to two places maximum)

    Hope this helps
    Semoga ini bisa membantu
    Attached Files Attached Files

+ 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