How to convert a numeric value into english Word?

Last update on October 22, 2009 06:49 PM by aakai1056
Published by aakai1056

How to convert a numeric value into english Word?






To convert a numeric value into eng. Word, here is the formula you will need

This is a post from the forum, thanks to rajput391

Below code enter in excel sheet:
1. Press Alt+F11 > copy and pate in module (if module not show the insert module click insert on menu bar > Module)
2. Alt+Q Save code and return on Excel sheet
3. Insert > function > user defined > A1 or (relevent cell)

Function words(fig, Optional point = "Point") As String 
Dim digit(14) As Integer 
alpha = Array("", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen", "Eighteen", "Nineteen", "Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety") 
figi = Trim(StrReverse(Str(Int(Abs(fig))))) 
For i = 1 To Len(figi) 
digit(i) = Mid(figi, i, 1) 
Next 
For i = 2 To Len(figi) Step 3 
If digit(i) = 1 Then 
digit(i) = digit(i - 1) + 10: digit(i - 1) = 0 
Else: If digit(i) > 1 Then digit(i) = digit(i) + 18 
End If 
Next 
For i = 1 To Len(figi) 
If (i Mod 3) = 0 And digit(i) > 0 Then words = "hundred " & words 
If (i Mod 3) = 1 And digit(i) + digit(i + 1) + digit(i + 2) > 0 Then _ 
words = Choose(i / 3, "thousand ", "million ", "billion ") & words 
words = Trim(alpha(digit(i)) & " " & words) 
Next 
If fig <> Int(fig) Then 
figc = StrReverse(figi) 
If figc = 0 Then figc = "" 
figd = Trim(WorksheetFunction.Substitute(Str(Abs(fig)), figc & ".", "")) 
words = Trim(words & " " & point) 
For i = 1 To Len(figd) 
If Val(Mid(figd, i, 1)) > 0 Then 
words = words & " " & alpha(Mid(figd, i, 1)) 
Else: words = words & " Zero" 
End If 
Next 
End If 
If fig < 0 Then words = "Negative " & words 
End Function
Best answers for « How to convert a numeric value into english Word? » in :
How to convert Excel into PDF? ShowHow to convert Excel into PDF? Here is a small tips about how to convert your excel files into PDF for your presentation. Step 1 PDF995 is software that gets installed on your computer which enables you to print any sources of document to...
Converting your PDF file into an Image ShowConverting your PDF file into an Image Universal Document Converter PDF2IMAGE PDF TO IMAGE CONVERTER You could have encountered difficulties to modify PDF docs in the past. Nowadays this is no more trouble as there are several PDF...
How to convert a PPS file to PDF format? ShowHow to convert a PPS file to PDF format? Download OpenOffice Open the file Exporting Below is a tips of how to convert PPS file to PDF format and preserve the clickable link at the same. Download OpenOffice Download Openoffice...
Download Quick Word to PDF ShowTo transfer your documents most in possible security, there is not better than format PDF. Then, to convert your documents Word into PDF, adopt the quick program Word to PDF. Quick Word to PDF is a tool which integrates with the interface of...
Download Free PowerPoint/PPT to Pdf Converter ShowIt is frequent to convert Word, Excel or image files to PDF format. But it is not very common to convert a PowerPoint file to the PDF format. PowerPoint / PPT to Pdf Converter is an application allowing to convert easily and quickly PowerPoint...
Download Free Word/Doc Txt to Image Jpg/Jpeg Bmp Tiff Png ShowIt is usually the images that we insert into Word, Excel or PowerPoint documents. This time, it is the opposite, because we are going to convert these documents to image formats. All to Jpg / JPEG Image Bmp Tiff Png Converter is a powerful tool which...
Graphics cards - Video cards Show2D Accelerator Cards A graphics card, sometimes called a graphics adapter, video card or graphics accelerator, is a computer component which converts digital data into a graphical form which can be displayed on a monitor. The initial role of a...
HTML forms ShowForms Interactive forms let web page authors give their pages interactive elements, such as for receiving messages from their readers, much like the reply cards found in some magazines. The reader enters information by filling in fields or clicking...
Spreadsheets - Data Entry ShowCell Content A cell of a worksheet can contain a value or be empty. The value of a cell has two essential characteristics: a type, which means the intrinsic type of the data. There are generally three types of values: numeric values, for example...