I am wondering if there a way to convert a dollar value into words within LibreOffice Calc version 6.0.3.2
$1932.19
Would Become
One Thousand Nine Hundred Thirty Two Dollars And Nineteen Cents
I've found this function. It was lasted updated in 2010. It isn't compatible. The given example
=MONEYTEXT(25)
Returns
ERR: 504
Does anyone have an alternative suggestion?
This works with LibreCalc 6.0.3.2 in 18.04 LTS and I have tested it with 6.0.5.2 in 16.04 LTS.
Download the Extension from https://extensions.libreoffice.org/extensions/numbertext-1
Then go to Tools --> Extension Manager in LibreOffice Calc
Click Add, then choose your downloaded file.
If the extension does not work, check if the package
libreoffice-script-provider-python
is installed and install it if it is missing.If you want the text to lower case it would just need to be done like so:
And for upper case it would be relatively the same:
Hope this helps!
In Libreoffice Calc, you can turn on "macros" which use the "BASIC" (Beginners All-purpose Symbolic Instruction Code) language similar to Microsoft Excel's "VBA" (Visual Basic for Applications).
The advantage of using your own macro is "future-proofing". The English language for cheque / check writing isn't about to change but some extension add-ons from the past no long work today.
A summary of most respected guides on BASIC macros can be found here.
From Apache Open Office (almost identical to LibreOffice): SpellNumber in Calc Basic. This according to author still needs debugging.
For Microsoft Excel: How to spell out or convert numbers to English words in Excel?. Libreoffice has experimental support for Excel's VBA (Visual Basic for Applications). So you can implement the macro below as is, or convert it to Libre Office BASIC syntax.
Indian Lakhs and Crores.
A Calc Basic Macro was posted here to convert numbers to words:
This macro's currency units are in " Lakhs " and " Crores ". You can modify the code to your needs.