How to format a number to its written form

Discuss the spreadsheet application
Post Reply
AndrewToole
Posts: 1
Joined: Thu Jan 08, 2015 4:29 pm

How to format a number to its written form

Post by AndrewToole »

Hi,
I am trying to format a number to its written form.
For example: A1= $123.45
I want to be able to make A2= "$ One hundred twenty three and 45/100"
Any help would be greatly appreciated. Thanks.
OpenOffice 4 on Windows 8
User avatar
Mr.Dandy
Posts: 461
Joined: Tue Dec 11, 2012 4:22 pm

Re: how to format a number to its written form

Post by Mr.Dandy »

OpenOffice 4.1.12 - Windows 10
User avatar
Zizi64
Volunteer
Posts: 11481
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: how to format a number to its written form

Post by Zizi64 »

This extension can make something similatr thing:

http://extensions.libreoffice.org/exten ... mbertext-1
http://extensions.services.openoffice.o ... numbertext

Code: Select all

=MONEYTEXT(A2;"USD";"en")
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
Posts: 11481
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: how to format a number to its written form

Post by Zizi64 »

or use the NUMBERTEXT() function from the extension:

Code: Select all

="$ "&NUMBERTEXT(INT(A2);"en") & " and " & TEXT(100*(A2-INT(A2));"00") &"/100"
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
karolus
Volunteer
Posts: 1226
Joined: Sat Jul 02, 2011 9:47 am

Re: how to format a number to its written form

Post by karolus »

Hallo

Maybe

Code: Select all

="$ "&NUMBERTEXT(INT(A2);"en")&TEXT(MOD(A2;1);"??/100") 
Karolus
AOO4, Libreoffice 6.1 on Rasbian OS (on ARM)
Libreoffice 7.4 on Debian 12 (Bookworm) (on RaspberryPI4)
Libreoffice 24.8… flatpak on Debian 12 (Bookworm) (on RaspberryPI4)
Post Reply