i borrowed and modified this code from Ozgrid.com

Option Compare Database

Option Explicit

Function SpellNumber(ByVal MyNumber)

 Dim Dollars, Cents, Temp

 Dim DecimalPlace, Count



 ReDim Place(9) As String

 Place(2) = " Thousand "

 Place(3) = " Million "

 Place(4) = " Billion "

 Place(5) = " Trillion "



 ' String representation of amount.

 MyNumber = Trim(Str(MyNumber))



 ' Position of decimal place 0 if none.

 DecimalPlace = InStr(MyNumber, ".")

 ' Convert cents and set MyNumber to dollar amount.

 If DecimalPlace > 0 Then

     Cents = GetTens(Left(Mid(MyNumber, DecimalPlace + 1) & "00", 2))

     MyNumber = Trim(Left(MyNumber, DecimalPlace - 1))

 End If



 Count = 1

 Do While MyNumber <> ""

     Temp = GetHundreds(Right(MyNumber, 3))

     If Temp <> "" Then Dollars = Temp & Place(Count) & Dollars

     If Len(MyNumber) > 3 Then

         MyNumber = Left(MyNumber, Len(MyNumber) - 3)

     Else

         MyNumber = ""

     End If

     Count = Count + 1

 Loop



 Select Case Dollars

     Case ""

         'Dollars = "No Dollars"

     Case "One"

         'Dollars = "One Dollar"

     Case Else

         'Dollars = Dollars & " Dollars"

 End Select



 Select Case Cents

     Case ""

         'Cents = " and No Cents"

     Case "One"

         'Cents = " and One Cent"

     Case Else

         Cents = " and " & Cents & " hundreds"

 End Select



 SpellNumber = Dollars & Cents

End Function

'*******************************************

' Converts a number from 100-999 into text *

'*******************************************

Function GetHundreds(ByVal MyNumber)

Dim Result As String



If Val(MyNumber) = 0 Then Exit Function

MyNumber = Right("000" & MyNumber, 3)



' Convert the hundreds place.

If Mid(MyNumber, 1, 1) <> "0" Then

    Result = GetDigit(Mid(MyNumber, 1, 1)) & " Hundred "

End If



' Convert the tens and ones place.

If Mid(MyNumber, 2, 1) <> "0" Then

    Result = Result & GetTens(Mid(MyNumber, 2))

Else

    Result = Result & GetDigit(Mid(MyNumber, 3))

End If



GetHundreds = Result

End Function

'*********************************************

' Converts a number from 10 to 99 into text. *

'*********************************************

Function GetTens(TensText)

 Dim Result As String



 Result = ""           ' Null out the temporary function value.

 If Val(Left(TensText, 1)) = 1 Then   ' If value between 10-19...

     Select Case Val(TensText)

         Case 10: Result = "Ten"

         Case 11: Result = "Eleven"

         Case 12: Result = "Twelve"

         Case 13: Result = "Thirteen"

         Case 14: Result = "Fourteen"

         Case 15: Result = "Fifteen"

         Case 16: Result = "Sixteen"

         Case 17: Result = "Seventeen"

         Case 18: Result = "Eighteen"

         Case 19: Result = "Nineteen"

         Case Else

     End Select

 Else                                 ' If value between 20-99...

     Select Case Val(Left(TensText, 1))

         Case 2: Result = "Twenty "

         Case 3: Result = "Thirty "

         Case 4: Result = "Forty "

         Case 5: Result = "Fifty "

         Case 6: Result = "Sixty "

         Case 7: Result = "Seventy "

         Case 8: Result = "Eighty "

         Case 9: Result = "Ninety "

         Case Else

     End Select

     Result = Result & GetDigit(Right(TensText, 1))  ' Retrieve ones place.

 End If

 GetTens = Result

End Function

'*******************************************

' Converts a number from 1 to 9 into text. *

'*******************************************

Function GetDigit(Digit)

Select Case Val(Digit)

    Case 1: GetDigit = "One"

    Case 2: GetDigit = "Two"

    Case 3: GetDigit = "Three"

    Case 4: GetDigit = "Four"

    Case 5: GetDigit = "Five"

    Case 6: GetDigit = "Six"

    Case 7: GetDigit = "Seven"

    Case 8: GetDigit = "Eight"

    Case 9: GetDigit = "Nine"

    Case Else: GetDigit = ""

End Select

End Function

Answer from Duane Hookom on learn.microsoft.com
🌐
Boxentriq
boxentriq.com › home › code-breaking › letters to numbers
Letters to Numbers Converter | Boxentriq
Converts letters to numbers across common cipher conventions and multiple alphabets. Convert letters into numbers instantly! Just type or paste your text, choose language and code type, and see the result.
🌐
Cryptii
cryptii.com › pipes › a1z26-cipher
A1Z26 cipher – Translate between letters and numbers - cryptii
Converts alphabet characters into their corresponding alphabet order number (e.g. A=1, B=2, …, Z=26) while non-alphabet characters are being dropped. Zählwerk Enigma · Baudot code · HMAC · Decimal to text ·
Discussions

Convert Numbers to words
Although I stopped using/got rid of the actual check report, I still had the module code in my system. This module, called "Numbers to Word." More on learn.microsoft.com
🌐 learn.microsoft.com
7
72
convert numbers to words (1,2,3 etc. to one,two,three etc.)
The simplest way would be to use a dictionary : my_nums = {1:'one', 2:'two', 3:'three', 4:'four', 5:'five'} Inside your for loop you could do : print(my_nums[number]) Obviously you will need to add all the numbers contained in numbers.txt into the dictionary or you will get an error message. You would not need the series of if statements. More on reddit.com
🌐 r/learnpython
9
4
October 7, 2017
Library for converting numbers to words
Nice! You can also do something like that with the NumberFormatter from php-intl: $fmt = new NumberFormatter('en_US', NumberFormatter::SPELLOUT); echo $fmt->format(1142) . PHP_EOL; one thousand one hundred forty-two More on reddit.com
🌐 r/PHP
29
34
January 20, 2014
Simple way to convert text into numbers? (i.e. CODE for the entire word?)
Maybe not simple, you can combine CODE with MID and a few other functions to return the ascii for each individual letter. If your word is in A2, =TEXTJOIN("",1,CODE(MID(A2,ROW($A$1:INDEX($A:$A,LEN(A2))),1))) Do not adjust the $A$1 or $A:$A references More on reddit.com
🌐 r/excel
15
3
July 20, 2022
People also ask

Can I choose how the numbers are separated?
Yes, you can customize the separator (e.g., ',', '|', '~', or space).
🌐
infyways.com
infyways.com › tools › letters-to-numbers
Letters to Numbers Converter – Convert Letters to Numeric... ...
What is single-digit reduction?
If the sum is two digits (e.g., 12), it will be reduced to a single digit (1+2 = 3).
🌐
infyways.com
infyways.com › tools › letters-to-numbers
Letters to Numbers Converter – Convert Letters to Numeric... ...
Can I process multiple lines of text?
Yes, you can enter multiple lines, and each line will be processed separately.
🌐
infyways.com
infyways.com › tools › letters-to-numbers
Letters to Numbers Converter – Convert Letters to Numeric... ...
🌐
Boxentriq
boxentriq.com › home › code-breaking › numbers to letters
Numbers to Letters Converter | Boxentriq
Convert numbers into letters instantly! Just type or paste your numbers, choose language and code type, and see the text appear. Any invalid or-non-convertible numbers are shown as #. Switch to 🔀 Letters to Numbers.
🌐
Infyways
infyways.com › tools › letters-to-numbers
Letters to Numbers Converter – Convert Letters to Numeric... | Free Online Tools | Infyways
Automatically compute the sum of the converted numbers. Reduce sums to a single digit (e.g., 12 → 1+2 = 3). Convert multiple lines of text at once. ... Convert names or words into numbers and analyze their significance using numerology.
🌐
CalculatorSoup
calculatorsoup.com › calculators › conversions › numberstowords.php
Numbers to Words Converter
Convert numbers to words, numbers to USD currency, and currency to words. Includes how to write a check. Use this converter to translate numbers to words in English.
Top answer
1 of 4
7

i borrowed and modified this code from Ozgrid.com

Option Compare Database

Option Explicit

Function SpellNumber(ByVal MyNumber)

 Dim Dollars, Cents, Temp

 Dim DecimalPlace, Count



 ReDim Place(9) As String

 Place(2) = " Thousand "

 Place(3) = " Million "

 Place(4) = " Billion "

 Place(5) = " Trillion "



 ' String representation of amount.

 MyNumber = Trim(Str(MyNumber))



 ' Position of decimal place 0 if none.

 DecimalPlace = InStr(MyNumber, ".")

 ' Convert cents and set MyNumber to dollar amount.

 If DecimalPlace > 0 Then

     Cents = GetTens(Left(Mid(MyNumber, DecimalPlace + 1) & "00", 2))

     MyNumber = Trim(Left(MyNumber, DecimalPlace - 1))

 End If



 Count = 1

 Do While MyNumber <> ""

     Temp = GetHundreds(Right(MyNumber, 3))

     If Temp <> "" Then Dollars = Temp & Place(Count) & Dollars

     If Len(MyNumber) > 3 Then

         MyNumber = Left(MyNumber, Len(MyNumber) - 3)

     Else

         MyNumber = ""

     End If

     Count = Count + 1

 Loop



 Select Case Dollars

     Case ""

         'Dollars = "No Dollars"

     Case "One"

         'Dollars = "One Dollar"

     Case Else

         'Dollars = Dollars & " Dollars"

 End Select



 Select Case Cents

     Case ""

         'Cents = " and No Cents"

     Case "One"

         'Cents = " and One Cent"

     Case Else

         Cents = " and " & Cents & " hundreds"

 End Select



 SpellNumber = Dollars & Cents

End Function

'*******************************************

' Converts a number from 100-999 into text *

'*******************************************

Function GetHundreds(ByVal MyNumber)

Dim Result As String



If Val(MyNumber) = 0 Then Exit Function

MyNumber = Right("000" & MyNumber, 3)



' Convert the hundreds place.

If Mid(MyNumber, 1, 1) <> "0" Then

    Result = GetDigit(Mid(MyNumber, 1, 1)) & " Hundred "

End If



' Convert the tens and ones place.

If Mid(MyNumber, 2, 1) <> "0" Then

    Result = Result & GetTens(Mid(MyNumber, 2))

Else

    Result = Result & GetDigit(Mid(MyNumber, 3))

End If



GetHundreds = Result

End Function

'*********************************************

' Converts a number from 10 to 99 into text. *

'*********************************************

Function GetTens(TensText)

 Dim Result As String



 Result = ""           ' Null out the temporary function value.

 If Val(Left(TensText, 1)) = 1 Then   ' If value between 10-19...

     Select Case Val(TensText)

         Case 10: Result = "Ten"

         Case 11: Result = "Eleven"

         Case 12: Result = "Twelve"

         Case 13: Result = "Thirteen"

         Case 14: Result = "Fourteen"

         Case 15: Result = "Fifteen"

         Case 16: Result = "Sixteen"

         Case 17: Result = "Seventeen"

         Case 18: Result = "Eighteen"

         Case 19: Result = "Nineteen"

         Case Else

     End Select

 Else                                 ' If value between 20-99...

     Select Case Val(Left(TensText, 1))

         Case 2: Result = "Twenty "

         Case 3: Result = "Thirty "

         Case 4: Result = "Forty "

         Case 5: Result = "Fifty "

         Case 6: Result = "Sixty "

         Case 7: Result = "Seventy "

         Case 8: Result = "Eighty "

         Case 9: Result = "Ninety "

         Case Else

     End Select

     Result = Result & GetDigit(Right(TensText, 1))  ' Retrieve ones place.

 End If

 GetTens = Result

End Function

'*******************************************

' Converts a number from 1 to 9 into text. *

'*******************************************

Function GetDigit(Digit)

Select Case Val(Digit)

    Case 1: GetDigit = "One"

    Case 2: GetDigit = "Two"

    Case 3: GetDigit = "Three"

    Case 4: GetDigit = "Four"

    Case 5: GetDigit = "Five"

    Case 6: GetDigit = "Six"

    Case 7: GetDigit = "Seven"

    Case 8: GetDigit = "Eight"

    Case 9: GetDigit = "Nine"

    Case Else: GetDigit = ""

End Select

End Function

2 of 4
3

Why not use the found module and simply remove all references to "DOLLARS" or "CENTS"?

Find elsewhere
🌐
AskPython
askpython.com › home › convert a number to words [digit by digit] in python
Convert a number to words [digit by digit] in Python - AskPython
August 4, 2021 - For every recursive call, we will check if my number became 0, if it did we would return an empty string otherwise we will keep adding the wordings for each digit with the help of the modulus function and divide the number by 10 to shrink the number and move to the next digit. The code ...
🌐
Reddit
reddit.com › r/learnpython › convert numbers to words (1,2,3 etc. to one,two,three etc.)
r/learnpython on Reddit: convert numbers to words (1,2,3 etc. to one,two,three etc.)
October 7, 2017 -

i'm trying to convert numbers from 1-12 to one-twelve.

first I want to open a file named "numbers.txt". the file's content exists of the numbers "1 2 3 4 5 etc. to 12" on each line. then convert these numbers to "one to twelve" and write them to a new file.

my first solution for the conversion goes:

with open ("numbers.txt") as f:
   for number in f:
      if number == 1
          print(One, end="")
      if number == 2
          print(Two, end="")
      #etc.

even though my code doesn't even work, i assume that's a sloppy way to do this. what would be a simpler, more professional way? Without it getting too advanced, i'm a beginner :)

🌐
DCode
dcode.fr › communication system › numeral system › number in letters
Numbers in Letters Converter - Numbers to Words Online Translator
Numbers are to numbers what letters are to words. There are 10 digits: 0,1,2,3,4,5,6,7,8,9 that allows writing all the numbers. Numbers are composed from 1 to n digits. Example: In the number 248, there are three digits that are 2, 4 and 8. ...
🌐
Code Beautify
codebeautify.org › number-to-word-converter
Numbers to Words Converter from 0 to nonillion
Numbers to Words Converter is an easy-to-use tool to convert Numbers to Readable Strings.
🌐
InkPx
inkpx.com › alphabet-to-numbers
Alphabet to numbers: Convert letters to numbers online · InkPx
Choosing a numbering system: The most common system is A1Z26, where A is assigned 1, B is assigned 2, and so on up to Z, which is assigned 26. However, other numbering systems are possible. Entering text or alphabet characters: The converter accepts input in various formats, such as simple ...
🌐
Lettertonumber
lettertonumber.com
Letters to Numbers & Numbers to Letters Converter
The letters to numbers converter can quickly translate text into a numerical sequence, while the reverse process helps decode numerical messages back to text. Text Processing and Data Analysis: In certain programming or data analysis tasks, you might need to represent textual data numerically or convert numerical data back to text. This bidirectional conversion facilitates numerical manipulation and analysis of text data. Puzzles and Games: Many word puzzles and number games utilize the concept of assigning numerical values to letters.
🌐
ThoughtCo
thoughtco.com › how-to-convert-numbers-to-words-with-javascript-4072535
Need to Convert Numbers Into Words With JavaScript?
May 7, 2025 - You can convert numbers into words in JavaScript using a simple function called toWords.
🌐
Richland College
people.richland.edu › james › ictcm › 2001 › dating › dating.pdf pdf
Conversion Table A = 1 B = 2 C = 3 D = 4 E = 5 F = 6 G = 7 H = 8 I = 9 J = 10
Rearrange the letters into alphabetical order. This is not necessary to find the · standard deviation, but it helps visualize the name ... Find the median letter for your name. The median letter would be the letter in the · middle (if you have an odd number of letters) or the midpoint between the two
🌐
Numbers to Letters
numberstoletters.com
Numbers to Letters Converter | Fast, Free & Secure
To Words (1=One, 2 = Two, ... to Nonillion) ... Convert Single Number If Checked it will ignore number with it's together such as 15 will result in "o" and if not checked it will show "ae"
🌐
Excel X
excelx.com › home › convert number to words in excel
Convert Number to Words in Excel | Excelx.com
July 27, 2023 - Simply return to your Excel sheet and in any cell, write =NumToWords(CELL). You should replace CELL with the cell number that contains the numeric value you wish to convert. For example, =NumToWords(A1) will convert the number in cell A1 to words.
🌐
npm
npmjs.com › package › number-to-words
number-to-words - npm
August 9, 2018 - Latest version: 1.2.4, last published: 7 years ago. Start using number-to-words in your project by running `npm i number-to-words`. There are 183 other projects in the npm registry using ...
      » npm install number-to-words
    
Published   Aug 09, 2018
Version   1.2.4
Author   Martin Eneqvist
🌐
GeeksforGeeks
geeksforgeeks.org › dsa › convert-number-to-words
Program to convert a given number to words - GeeksforGeeks
So, the first key numeric value which is smaller than this number is 100. First, we add the quotient part = 203 / 100 = 2, result = "Two". Next, we append the word for key numeric value which is 100, result = "Two Hundred" . Finally, we append the word for remainder part = 203 % 100 = 3, so the final result is = "Two Hundred Three". ... // C++ program to convert number into words by Mapping Key Numeric Values // with English Words #include <iostream> #include <vector> #include <string> using namespace std; string convertToWordsRec(int n, vector<int> &values, vector<string> &words) { string res
Published   November 12, 2024
🌐
Hkcoding
hkcoding.com › en › checkconvert
Numbers to Words Converter for Check Writing | HKCoding
Enter an amount in numbers and convert it to words for check writing