Jun 27 2019 10:59 PM
To revel my 20th week as a member of this EXCELlent Community, I hereby share my NumToWords formula. Delve into it in the attached file and please apprise me of your thoughts thereon.
Jul 10 2019 11:34 PM
Jul 11 2019 12:00 AM
Thanks for your compliment. Incidentally, you need not copy the workbook. You only have to copy the formula to any cell other than those in Column A and it will convert the number to its left to words.
Thereafter, you can convert any number in the same workbook by entering this formula in the cell to its right:
=NumToWords
Dec 16 2019 11:12 PM
Dec 16 2019 11:43 PM
For example, enter 1234.56 in A1 of your worksheet. Copy the cell containing the NumToWords formula and enter it in B1.
You must see the words in B1 after that.
Dec 17 2019 12:18 AM
Dec 17 2019 09:35 PM - edited Dec 17 2019 09:35 PM
Perhaps, the attached sample file will help you understand how the formula works. Please look at the formula in B2, as shown in the snapshot below:
Dec 17 2019 10:35 PM
@Twifoo Yes yes yes ..thank you so much, now the file that you sent works like a charm... what did you do.??? .just trying to understand and what i wasnt doing.....
Dec 17 2019 10:41 PM
I simply copied the formula in B2 of my original file to B2 of the new workbook with 1234.56 in A2. Perhaps, you copied the wrong cell.
Dec 17 2019 10:47 PM
@Twifoo ohh ok...I understood now...for so long i was copying the formula from B18 and pasting in a new workbook and then entering a number before it.... 😞 thank you so much dear...you help is really appreciated!!
Dec 18 2019 11:10 AM
Dec 18 2019 12:51 PM
Dec 18 2019 03:24 PM
That's great. And congratulations on your twentieth week! I think I'm in my fourth or fifth, and loving it too.
Your formula here takes me back to my earliest days with a PC...probably the late 70s.. I wrote a program (Basic) to print checks to pay bills; got a supply of checks that would go through a pin-feed, dot matrix Okidata printer.
And I wrote a routine that would translate 123.45 into "One Hundred Twenty-Three Dollars and Forty-five Cents" One feature of which I was very proud was that if the amount was, say, 1.14, the words would be "One Dollar" --- in the singular-- and same for "One Cent" if it came to that. None of that settling for "Dollars" just because that 99.9% of the time would work accurately. I notice you left off the currency label, which makes it more universal, so no problem.
But fun, right?
Thanks for sharing it.
Dec 18 2019 08:51 PM
Thanks for your compliment. My formula is universal, such that, as its name connotes, it converts a number to words, not to a specific currency. You're right, it was fun constructing the formula.
By the way, the formula is broken down into components to enable modification of each to convert a number to a specific currency.
Cheers,
Twifoo
Dec 18 2019 09:18 PM
Dec 18 2019 10:26 PM - edited Jun 19 2020 05:36 PM
My NumToWords is a named formula, not a built-in function. You must copy B2 of my worksheet to B2 of yours to store the named formula into your Name Manager. Without copying B2, NumToWords won't work in your worksheet because it is not stored in your Name Manager.
Dec 19 2019 12:39 AM
Hi @mathetes,
Your story inspired me to modify my NumToWords formula to consider Dollars as a currency built into it. The integer portion is described as either "Dollar" for singular or "Dollars" for plural. Conversely, the decimal portion is described as either "Cent" for singular and "Cents" for plural.
To test its accuracy, I entered my NumToDollars formula in Column B, as shown here:
As with my NumToWords, my NumToDollars can also convert any value up to 15 significant digits. Moreover, NumToDollars can be easily converted to apply to another Currency by modifying its components.
Cheers,
Twifoo
Aug 28 2020 04:32 AM
Solution@Jay8642, your request is my command! Note that I simply edited the formulas for these defined names:
1. CurName
=IF(INT(IntNum)=0,"","Pound"&LEFT("s",INT(IntNum)>1))
2. DecName
="Pen"&IF(SIGN(DecNum-1),"ce","ny")
Finally, I renamed NumToDollars as NumToPounds. To satisfy your curiosity on the process of constructing the formula, you can read my articles on NumToWords and NumToDollars. The snapshot below illustrates the use of the NumToPounds formula:
The Excel file containing the NumToPounds formula is hereto attached for the benefit of those who may be interested in testing its usage.