+ Reply to Thread
Results 1 to 7 of 7

Converting currency to word

Hybrid View

  1. #1
    Registered User
    Join Date
    03-26-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    1

    Converting currency to word

    I search the web and found a way to convert currency to words, but its not in a format I want.

    e.g: $999.09 is converted to "Nine Hundred ninety nine dollars and nine cents", how can I change the format to Dollars Nine Hundred ninety nine and Cents nine only"?

  2. #2
    Valued Forum Contributor Dunc3142's Avatar
    Join Date
    09-05-2007
    Location
    Franklin OH
    MS-Off Ver
    2000 and 2007 and 2010 @ Home & Teach 2010
    Posts
    351

    Re: Converting currency to word

    Here is one solution, IT IS a long formula but it works. Number in cell A1 has to be formatted as text. This works up to 9999.99
    Attached Files Attached Files
    Yes it will. we just have to figure out how...
    If I have helped you, PLEASE click the * and add to my Rep.
    Also, if the problem is SOLVED please mark it as so.

  3. #3
    Valued Forum Contributor Dunc3142's Avatar
    Join Date
    09-05-2007
    Location
    Franklin OH
    MS-Off Ver
    2000 and 2007 and 2010 @ Home & Teach 2010
    Posts
    351

    Re: Converting currency to word

    I am working on this more. The posted version is not working...

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Converting currency to word

    I search the web and found a way to convert currency to words
    care to share what you are using? it could then maybe be modified
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    04-02-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Converting currency to word

    THANK YOU SO MUCH!!! This helped me for my bid due today.

  6. #6
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Converting currency to word

    you could try this ugly 'MONSTER', works to 9,999,999,999,999.99 (which is the 15 digits of significance Excel allows.it will go to 999,999,999,999,999.00 as long as your willing to lose the pennies and dimes as you get larger, I am working on a better one)

    (Note- My original formula for this uses named arrays and named formulas to shorten the actual formula)

    Formula: copy to clipboard
    =TRIM(
    IF($A1="","",
    IF(INT(MOD($A1/10^12,10^3)),IF(INT(MOD($A1/10^12,10^3))<100,"",INDEX({""," One"," Two"," Three"," Four"," Five"," Six"," Seven"," Eight"," Nine"},INT(INT(MOD($A1/10^12,10^3))/100)+1)&" Hundred"&IF(MOD(INT(MOD($A1/10^12,10^3)),100)," and",""))&IF(MOD(INT(MOD($A1/10^12,10^3)),100)>=20,INDEX({""," Twenty"," Thirty"," Forty"," Fifty"," Sixty"," Seventy"," Eighty"," Ninety"},INT(MOD(INT(MOD($A1/10^12,10^3)),100)/10))&INDEX({""," One"," Two"," Three"," Four"," Five"," Six"," Seven"," Eight"," Nine"},MOD(INT(MOD($A1/10^12,10^3)),10)+1),IF(MOD(INT(MOD($A1/10^12,10^3)),100)<10,INDEX({""," One"," Two"," Three"," Four"," Five"," Six"," Seven"," Eight"," Nine"},MOD(INT(MOD($A1/10^12,10^3)),10)+1),INDEX({" Ten"," Eleven"," Twelve"," Thirteen"," Fourteen"," Fifteen"," Sixteen"," Seventeen"," Eighteen"," Nineteen"},MOD(INT(MOD($A1/10^12,10^3)),100)-9)))&" Trillion"&IF(OR(INT(MOD($A1/10^9,10^3)),INT(MOD(ROUND(INT($A1)/10^9-INT(INT($A1)/10^9),9)*10^3,10^3)),INT(MOD(ROUND(INT($A1)/10^6-INT(INT($A1)/10^6),7)*10^3,10^3)),INT(MOD(ROUND(INT($A1)/10^3-INT(INT($A1)/10^3),3)*10^3,10^3))),",",""),"")
    &
    IF(INT(MOD($A1/10^9,10^3)),IF(INT(MOD($A1/10^9,10^3))<100,"",INDEX({""," One"," Two"," Three"," Four"," Five"," Six"," Seven"," Eight"," Nine"},INT(INT(MOD($A1/10^9,10^3))/100)+1)&" Hundred"&IF(MOD(INT(MOD($A1/10^9,10^3)),100)," and",""))&IF(MOD(INT(MOD($A1/10^9,10^3)),100)>=20,INDEX({""," Twenty"," Thirty"," Forty"," Fifty"," Sixty"," Seventy"," Eighty"," Ninety"},INT(MOD(INT(MOD($A1/10^9,10^3)),100)/10))&INDEX({""," One"," Two"," Three"," Four"," Five"," Six"," Seven"," Eight"," Nine"},MOD(INT(MOD($A1/10^9,10^3)),10)+1),IF(MOD(INT(MOD($A1/10^9,10^3)),100)<10,INDEX({""," One"," Two"," Three"," Four"," Five"," Six"," Seven"," Eight"," Nine"},MOD(INT(MOD($A1/10^9,10^3)),10)+1),INDEX({" Ten"," Eleven"," Twelve"," Thirteen"," Fourteen"," Fifteen"," Sixteen"," Seventeen"," Eighteen"," Nineteen"},MOD(INT(MOD($A1/10^9,10^3)),100)-9)))&" Billion"&IF(OR(INT(MOD(ROUND(INT($A1)/10^9-INT(INT($A1)/10^9),9)*10^3,10^3)),INT(MOD(ROUND(INT($A1)/10^6-INT(INT($A1)/10^6),7)*10^3,10^3)),INT(MOD(ROUND(INT($A1)/10^3-INT(INT($A1)/10^3),3)*10^3,10^3))),",",""),"")
    &
    IF(INT(MOD(ROUND(INT($A1)/10^9-INT(INT($A1)/10^9),9)*10^3,10^3)),IF(INT(MOD(ROUND(INT($A1)/10^9-INT(INT($A1)/10^9),9)*10^3,10^3))<100,"",INDEX({""," One"," Two"," Three"," Four"," Five"," Six"," Seven"," Eight"," Nine"},INT(INT(MOD(ROUND(INT($A1)/10^9-INT(INT($A1)/10^9),9)*10^3,10^3))/100)+1)&" Hundred"&IF(MOD(INT(MOD(ROUND(INT($A1)/10^9-INT(INT($A1)/10^9),9)*10^3,10^3)),100)," and",""))&IF(MOD(INT(MOD(ROUND(INT($A1)/10^9-INT(INT($A1)/10^9),9)*10^3,10^3)),100)>=20,INDEX({""," Twenty"," Thirty"," Forty"," Fifty"," Sixty"," Seventy"," Eighty"," Ninety"},INT(MOD(INT(MOD(ROUND(INT($A1)/10^9-INT(INT($A1)/10^9),9)*10^3,10^3)),100)/10))&INDEX({""," One"," Two"," Three"," Four"," Five"," Six"," Seven"," Eight"," Nine"},MOD(INT(MOD(ROUND(INT($A1)/10^9-INT(INT($A1)/10^9),9)*10^3,10^3)),10)+1),IF(MOD(INT(MOD(ROUND(INT($A1)/10^9-INT(INT($A1)/10^9),9)*10^3,10^3)),100)<10,INDEX({""," One"," Two"," Three"," Four"," Five"," Six"," Seven"," Eight"," Nine"},MOD(INT(MOD(ROUND(INT($A1)/10^9-INT(INT($A1)/10^9),9)*10^3,10^3)),10)+1),INDEX({" Ten"," Eleven"," Twelve"," Thirteen"," Fourteen"," Fifteen"," Sixteen"," Seventeen"," Eighteen"," Nineteen"},MOD(INT(MOD(ROUND(INT($A1)/10^9-INT(INT($A1)/10^9),9)*10^3,10^3)),100)-9)))&" Million"&IF(OR(INT(MOD(ROUND(INT($A1)/10^6-INT(INT($A1)/10^6),7)*10^3,10^3)),INT(MOD(ROUND(INT($A1)/10^3-INT(INT($A1)/10^3),3)*10^3,10^3))),",",""),"")
    &
    IF(INT(MOD(ROUND(INT($A1)/10^6-INT(INT($A1)/10^6),7)*10^3,10^3)),IF(INT(MOD(ROUND(INT($A1)/10^6-INT(INT($A1)/10^6),7)*10^3,10^3))<100,"",INDEX({""," One"," Two"," Three"," Four"," Five"," Six"," Seven"," Eight"," Nine"},INT(INT(MOD(ROUND(INT($A1)/10^6-INT(INT($A1)/10^6),7)*10^3,10^3))/100)+1)&" Hundred"&IF(MOD(INT(MOD(ROUND(INT($A1)/10^6-INT(INT($A1)/10^6),7)*10^3,10^3)),100)," and",""))&IF(MOD(INT(MOD(ROUND(INT($A1)/10^6-INT(INT($A1)/10^6),7)*10^3,10^3)),100)>=20,INDEX({""," Twenty"," Thirty"," Forty"," Fifty"," Sixty"," Seventy"," Eighty"," Ninety"},INT(MOD(INT(MOD(ROUND(INT($A1)/10^6-INT(INT($A1)/10^6),7)*10^3,10^3)),100)/10))&INDEX({""," One"," Two"," Three"," Four"," Five"," Six"," Seven"," Eight"," Nine"},MOD(INT(MOD(ROUND(INT($A1)/10^6-INT(INT($A1)/10^6),7)*10^3,10^3)),10)+1),IF(MOD(INT(MOD(ROUND(INT($A1)/10^6-INT(INT($A1)/10^6),7)*10^3,10^3)),100)<10,INDEX({""," One"," Two"," Three"," Four"," Five"," Six"," Seven"," Eight"," Nine"},MOD(INT(MOD(ROUND(INT($A1)/10^6-INT(INT($A1)/10^6),7)*10^3,10^3)),10)+1),INDEX({" Ten"," Eleven"," Twelve"," Thirteen"," Fourteen"," Fifteen"," Sixteen"," Seventeen"," Eighteen"," Nineteen"},MOD(INT(MOD(ROUND(INT($A1)/10^6-INT(INT($A1)/10^6),7)*10^3,10^3)),100)-9)))&" Thousand"&IF(INT(MOD(ROUND(INT($A1)/10^3-INT(INT($A1)/10^3),3)*10^3,10^3)),",",""),"")
    &
    IF(INT(MOD(ROUND(INT($A1)/10^3-INT(INT($A1)/10^3),3)*10^3,10^3)),IF(INT(MOD(ROUND(INT($A1)/10^3-INT(INT($A1)/10^3),3)*10^3,10^3))<100,"",INDEX({""," One"," Two"," Three"," Four"," Five"," Six"," Seven"," Eight"," Nine"},INT(INT(MOD(ROUND(INT($A1)/10^3-INT(INT($A1)/10^3),3)*10^3,10^3))/100)+1)&" Hundred"&IF(MOD(INT(MOD(ROUND(INT($A1)/10^3-INT(INT($A1)/10^3),3)*10^3,10^3)),100)," and",""))&IF(MOD(INT(MOD(ROUND(INT($A1)/10^3-INT(INT($A1)/10^3),3)*10^3,10^3)),100)>=20,INDEX({""," Twenty"," Thirty"," Forty"," Fifty"," Sixty"," Seventy"," Eighty"," Ninety"},INT(MOD(INT(MOD(ROUND(INT($A1)/10^3-INT(INT($A1)/10^3),3)*10^3,10^3)),100)/10))&INDEX({""," One"," Two"," Three"," Four"," Five"," Six"," Seven"," Eight"," Nine"},MOD(INT(MOD(ROUND(INT($A1)/10^3-INT(INT($A1)/10^3),3)*10^3,10^3)),10)+1),IF(MOD(INT(MOD(ROUND(INT($A1)/10^3-INT(INT($A1)/10^3),3)*10^3,10^3)),100)<10,INDEX({""," One"," Two"," Three"," Four"," Five"," Six"," Seven"," Eight"," Nine"},MOD(INT(MOD(ROUND(INT($A1)/10^3-INT(INT($A1)/10^3),3)*10^3,10^3)),10)+1),INDEX({" Ten"," Eleven"," Twelve"," Thirteen"," Fourteen"," Fifteen"," Sixteen"," Seventeen"," Eighteen"," Nineteen"},MOD(INT(MOD(ROUND(INT($A1)/10^3-INT(INT($A1)/10^3),3)*10^3,10^3)),100)-9))),"")
    &
    IF($A1<1,"Zero","")&IF(INT($A1)=1," Dollar"," Dollars")&" and"
    &
    IF(ROUND(($A1-INT($A1))*100,0)<1," Zero",IF(ROUND(($A1-INT($A1))*100,0)>=20,INDEX({""," Twenty"," Thirty"," Forty"," Fifty"," Sixty"," Seventy"," Eighty"," Ninety"},INT(ROUND(($A1-INT($A1))*100,0)/10))&INDEX({""," One"," Two"," Three"," Four"," Five"," Six"," Seven"," Eight"," Nine"},MOD(ROUND(($A1-INT($A1))*100,0),10)+1),IF(ROUND(($A1-INT($A1))*100,0)<10,INDEX({""," One"," Two"," Three"," Four"," Five"," Six"," Seven"," Eight"," Nine"},MOD(ROUND(($A1-INT($A1))*100,0),10)+1),INDEX({" Ten"," Eleven"," Twelve"," Thirteen"," Fourteen"," Fifteen"," Sixteen"," Seventeen"," Eighteen"," Nineteen"},ROUND(($A1-INT($A1))*100,0)-9))))&IF(ROUND(($A1-INT($A1))*100,0)=1," Cent"," Cents")
    )
    )


    Hope this helps

    EDIT-
    RECQUIRES 2007 or higher, this particular version is 1700-1800 characters long, so pre 2007 versions will not accept it (as I said, still working on a better one)

    Edit 2 -
    Closer to 8000 chars, sorry
    Last edited by dredwolf; 03-31-2013 at 10:55 PM.
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  7. #7
    Valued Forum Contributor Dunc3142's Avatar
    Join Date
    09-05-2007
    Location
    Franklin OH
    MS-Off Ver
    2000 and 2007 and 2010 @ Home & Teach 2010
    Posts
    351

    Re: Converting currency to word

    Here is a lot smaller formula that works to 9999.99
    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