Convert numbers into words in word

To convert a number to text without getting lost in the spelling (dashes..etc), it is possible to get Word to do the work for you. In this article, we will show you how to format this in Microsoft Word.

To convert numbers into words in MS Word:

  • Create a new field by pressing on CTRL-F9

  • {} Will appear on the screen
  • Fill it with the desired value preceded by ‘=’ and followed by a code (*cardtext) indicating the format to be used in this field.
  • For example: if you want Word to write down the number: 125
{=125*cardtext}
  • Press F9 to update the field value
  • The number appears in words: one hundred twenty-five
  • To change the number, right-click on the entry and select Toggle Field Codes.
  • Edit the value and press F9 to update the field.
  • This procedure does not work with decimal numbers, in this case, create two fields and insert the word «comma» between them:
{=12*cardtext}comma{=45*cardtext}
  • This procedure is limited to the number 999999, beyond, Word reports an error.
  • Other formatting codes can be assigned:
    • *ROMAN — For upper-case Roman numeral,
    • *roman — For lower-case Roman numeral
  • This procedure is limited to the number 32767, beyond, Word reports an error.

Need more help with Word? Check out our forum!

Calculator
Number to Words

  1. Home

  2. Calculators
  3. Number to Words

Number to words Converter

Enter the values below. The value will be displayed in words in the chosen language.

Number

Number to convert to words

Language

Number in words

Number in words

Sponsored

Sponsored

How to Quickly Convert Numbers to English Words

Have you ever wondered how to say «this number» or «that number» in words in the English language? Instead of writing the number as 1 or 2, you may prefer to write it as «one» or «two» instead, but need a quick way to figure out how to write the number in English.

Or, if there is a big number, like 1,234,567, you may be wondering, «How do I say this number in words?».

If so, the easiest way to convert numbers to English words is to use the Numbers to Words Converter. This is an online tool that will instantly tell you how to write a number.

Alternatively, you can also use Excel or Google Sheets, and here’s how:

Excel

The quickest and easiest way to convert numbers to words in Excel is to use the «SpellNumber» function. Here’s how to use it in two simple steps:

  1. Type the formula =SpellNumber(A1) into the cell where you want the number to appear
  2. Press Enter

(A1 contains the number you want to convert)

Alternatively, you can also use the following formula by changing the «NUMBER» with the number you want to convert:

  1. Type the formula =SpellNumber(NUMBER)
  2. Press Enter

Google Sheets

To convert numbers to text in Excel, you can use the «to_text» function. However, this will not convert the number to words, but it will convert it to string.

To use this function, simply:

  1. Type the formula =to_text(A1)
  2. Press Enter

(A1 contains the number you want to convert)

To convert the number to English words in Google Sheets, you can use a Numbers to Words Converter.

What Is the Numbers to Words Converter?

If you’ve ever wondered, «How do I say this number in words?», the Numbers to Words Converter is the tool you need.

This online tool is easy to use and is one of the quickest ways to convert a number to words in English. All you need to do is type the numbers and the number will automatically appear in words.

The Numbers to Words Converter works with all numbers, no matter whether it is just one or a very, very long string of numbers.

How to Use the Numbers to Words Converter

Here’s how to use the Numbers to Words Converter in two simple steps:

  1. Type your number into the box
  2. The number will automatically appear in words in the other box

Convert any number to its relevant word format in a single click. Just fill
in the desired number which you would like to convert into word in the text box provided and then as
you
key in you will see the word format of the figure getting displayed in the Currency and Indian Rupee
dialogue boxes. The Indian Rupee version shall be used in cheques, invoices and other specific
contexts
where the number signifies “Rupee”, while the currency format refers to the general usage.

Amount To Words Just copy the word format in the desired case
(Title, Upper
or Lower) and paste the same in the location of your choice.

You can convert any natural number sequence into word format without even clicking any button. Enter the
desired number which you would like to convert to a word in the provided text box, and the word format
of the figure will appear in both the Indian Rupee and western currency according to your need.

For the Indian Rupee version, the number represents the Rupee, while the currency format represents the
general usage word format in the desired case (Title, Upper or Lower).

Copy the word format in the case you want (Title, Upper or Lower) and paste it in the location of your
choice.

Furthermore, we are also providing a free number to words app which helps you to convert numbers into
words, and words into numbers in worldwide languages. The app has unique features that require only a
numeric digit and the amount in words will automatically calculate and give you the result.

App Link

Stay Connected On Mobile App, Click Here
Convert Numbers into Words App On Mobile

Numbers can be converted to words in Indian and western languages, words can be shared with other apps,
copied to your keyboard, and voice can be ready out.

Besides words to numbers, there is also the option of copying numbers to your keyboard, sharing numbers
to other apps, and reading the voice.

Besides the ability to create denominations based on the currency of four countries, the total
denomination value can be shared with other applications, copied to your keyboard, or even spoken out.

Coming soon These number tools are on the way

Generate Numberwang Numbers

Create a list of numberwang numbers.

Generate Magic Numbers

Create a list of neat looking numbers.

Draw a Magic Square

Create a matrix of numbers with rows and cols having same sum.

Rewrite Numbers

Given numbers and a grammar, recursively rewrite them.

Create a Floating Point Number

Create a number from the mantissa, base, and exponent.

Visualize a Floating Point Number

Show how a fp number is represented in a computer.

Convert a Number to the Scientific Notation

Convert a number to the a×10<sup>b</sup> form.

Convert Scientific Notation to a Number

Convert a number in scientific notation to a regular number.

Generate Unary Numbering

Create a list of unary numbers (1, 11, 111, 1111, …).

Generate Symbolic Numbering

Create a list of alphabetic numbers (a, b, c, …, z, aa, ab, …).

Generate Roman Numbering

Create a list of Roman numbers (i, ii, iii, iv, v…).

Generate Braille Numbering

Create a list of Braille numbers (⠂, ⠆, ⠒, ⠲, ⠢, …).

Generate Random Binary Numbers

Create a list of random binary numbers.

Generate Random Octal Numbers

Create a list of random octal numbers.

Generate Random Decimal Numbers

Create a list of random decimal numbers.

Generate Random Hex Numbers

Create a list of random hexadecimal numbers.

Calculate a Running Sum

Calculate a cumulative sum of a list of numbers.

Calculate a Running Difference

Calculate a cumulative difference of a list of numbers.

Calculate a Running Product

Calculate a cumulative product of a list of numbers.

Calculate Number Quotient

Divide two numbers and find their quotient.

Calculate Digit Quotient

Divide the digits of the given number.

Calculate the Factorial

Find the factorial of a number.

Create Number Anagrams

Create one or more anagrams of a number.

Generate Number Bigrams

Create a list of digit bigrams from a number.

Generate Number Trigrams

Create a list of digit trigrams from a number.

Generate Number N-grams

Create a list of digit ngrams from a number.

Generate a Polynomial Sequence

Create a list of polynomial progression numbers.

Generate SI Prefixes

Create a list of metric prefixes.

Analyze a Number

Report how many digits appear how many times.

Convert a Number to an Ordinal

Convert a cardinal number to an ordinal number.

Convert an Ordinal to a Number

Convert an ordinal number to a cardinal number.

Convert a Number to Roman Number

Convert Arabic numerals to Roman numerals.

Convert a Roman Number to Regular Number

Convert Roman Numerals to Arabic numerals.

Generate Negafibonacci Numbers

Calculate a series of extended Fibonacci numbers.

Generate Fibonacci Primes

Find numbers that are both Fibonacci numbers and primes.

Fibonacci Number Test

Check if a number is a Fibonacci number.

Fibonacci Prime Test

Check if a number is both a Fibonacci number and a prime.

Construct Fibonacci Words

Create a sequence of Fibonacci words.

Construct Tribonacci Words

Create a sequence of Tribonacci words.

Construct Tetranacci Words

Create a sequence of Tetranacci words.

Construct Pentanacci Words

Create a sequence of Pentanacci words.

Generate Negalucas Numbers

Calculate a series of extended Lucas numbers.

Generate Lucas Primes

Calculate a series of extended Lucas numbers.

Lucas Prime Test

Check if a number is both a Lucas number and a prime.

Generate Moser de Bruijn Numbers

Calculate a sequence of Moser-Bruijn numbers.

Generate Kolakoski Numbers

Calculate a sequence of Oldenburger-Kolakoski numbers.

Generate Stanley Numbers

Calculate a sequence of Stanley numbers.

Generate Gijswijt Numbers

Calculate a sequence of self-describing Gijswijt numbers.

Generate Rudin-Shapiro Numbers

Calculate a sequence of Rusin-Shapiro numbers.

Generate Baum-Sweet Numbers

Calculate a sequence of Baum-Sweet numbers.

Generate Thue-Morse Sequence

Calculate members of Thue-Morse number series.

Generate Perfect Numbers

Create a list of perfect numbers.

Generate Almost Perfect Numbers

Create a list of almost perfect numbers.

Generate Excessive Number Sequence

Calculate a sequence of abundant numbers.

Generate Deficient Number Sequence

Calculate a sequence of deficient numbers.

Calculate Dragon Curve Numbers

Generate a list of paperfolding sequence numbers.

Generate Composite Numbers

Create a list of numbers that are not prime.

Draw a Number on an LCD

Generate an LCD display that shows the given number.

Draw a Numbers Table

Generate a table of numbers.

Test if a Number is Perfect

Check if the given number is a perfect number.

Test if a Number is Abundant

Check if the given number is an abundant number.

Test if a Number is Deficient

Check if the given number is a deficient number.

Calculate the Modulo

Find the modulus of a number.

Group Number Digits

Group together digits of a number.

Split a Number into Digits

Create a list of digits from a number.

Printf Numbers

Apply sprintf or printf function to numbers.

Create Zalgo Numbers

Let Zalgo destroy your numbers.

Repeat a Number

Repeat a number multiple times.

Mirror a Number

Create a mirror copy of a number.

Custom-pad a Number

Add a padding of custom symbols to a number.

Reverse a Number

Reverse the order of digits of a number.

Rotate a Number

Cyclically rotate digits of a number to the left or right.

Increase a Number

Add one to the given number.

Increase All Digits in a Number

Add one to every digit in a number.

Decrease a Number

Subtract one from the given number.

Decrease All Digits in a Number

Subtract one from every digit in a number.

Find Patterns in Numbers

Discover patterns in sequences of numbers.

Count Number Occurrences

Find how often numeric values occur.

Generate Custom Numbers

Create numbers of arbitrary length and properties.

Print Googol

Print the Googol/Google number, which is 10<sup>100</sup>.

Generate Big Numbers

Create a list of big numbers.

Generate Small Numbers

Create a list of small numbers.

Generate Natural Numbers

Create a list of natural numbers.

Generate Rational Numbers

Create a list of rational numbers.

Generate Constant Sequence

Create a series of numbers where all terms are the same.

Generate Real Numbers

Create a sequence of real numbers.

Generate Complex Numbers

Create a list of complex numbers.

Generate Binary Numbers

Create a sequence of binary numbers.

Generate Pairs of Numbers

Create a sequence of number pairs.

Generate Triples of Numbers

Create a sequence of number triples.

Generate Tuples of Numbers

Create a sequence of number n-tuples.

Generate a Short Number

Create a number with not that many digits.

Generate a Long Number

Create a number with many digits.

Interweave Numbers

Interweave two or more number digit-by-digit.

Find the Decimal Expansion of a Number

Rewrite a number in the decimal representation.

Convert a Fraction to a Decimal

Convert a fraction to a decimal number.

Convert a Decimal to a Fraction

Convert a decimal number to a fraction.

Convert a Binary Number to Octal Number

Convert a base two number to base eight number.

Convert a Binary Number to Decimal Number

Convert a base two number to base ten number.

Convert a Binary Number to Hex Number

Convert a base two number to base sixteen number.

Convert a Octal Number to Binary Number

Convert a base eight number to base two number.

Convert a Octal Number to Decimal Number

Convert a base eight number to base ten number.

Convert a Octal Number to Hex Number

Convert a base eight number to base sixteen number.

Convert a Decimal Number to Binary Number

Convert a base ten number to base two number.

Convert a Decimal Number to Octal Number

Convert a base ten number to base eight number.

Convert a Decimal Number to Hex Number

Convert a base ten number to base sixteen number.

Convert a Hex Number to Binary Number

Convert a base sixteen number to base two number.

Convert a Hex Number to Octal Number

Convert a base sixteen number to base eight number.

Convert a Hex Number to Decimal Number

Convert a base sixteen number to base ten number.

Convert Any Number to Any Base

Convert any number in any base to any other base.

Change Number’s Mantissa

Change the significand of a number.

Change Number’s Exponent

Change the power of a number.

Replace Digits with Letters

Replace digits in a number with alphabet letters.

Create a Number Spiral

Form a spiral from the digits of a number.

Create a Number Circle

Form a circle from the digits of a number.

Create a Number Tree

Form a tree from the given numbers.

Create a Number Digit Tree

Form a tree from the digits of a number.

Remove Decimal Point

Remove the decimal separator from a decimal number.

Add Errors to Numbers

Modify numbers so they are almost the same but have errors.

Change Number Font

Write numbers in a different font.

Generate Bold Numbers

Write numbers in a bold font.

Generate Underline Numbers

Write numbers with an underline below them.

Generate Strikethrough Numbers

Write numbers with a strikethrough on them.

Generate Superscript Numbers

Write numbers in a superscript font.

Generate Subscript Numbers

Write numbers in a subscript font.

Create Fake Numbers

Change digits in a number to Unicode look-alikes.

Perturb Numbers

Change the given numbers a little bit.

Perturb Number Digits

Change the digits of the given numbers a little bit.

Find Entropy of a Number

Calculate the complexity (entropy) of a number.

Numberwang Number Test

Test if the given number is numberwang.

            As we know there is no inbuilt option for convert numbers into word in Microsoft Word.  But doing simple setting in your MS Word you can easily convert numbers into words, even you can create keyboard shortcut key to do this… So let’s learn how to convert number into words in MS word using keyboard shortcut key.

1.    Open word document, click on “view” click on “Micros-view Micro” a dialog box will appear give the macros name and click on “Create”.

How to Convert Number into Word in MS Word in Shortcut Key,convert number into word in word 2007,shortcut key to convert number into word in indian rupees,how to convert number into words,word 2003,word 2007,word 2013,word 2010,convert number into words in Microsoft Word,Micros,shortcut key to words to number,change number into words,words number,convert dollar into words,convert rupees into words,number to word,how to do,how to make number into word

2.    Copy and paste above code into Macros and click on “File”-“Close and return to Microsoft Word”.

    Dim sDigits As String

    Dim sBigStuff As String

    sBigStuff = «»

    ‘ Select the full number in which the insertion point is located

    Selection.MoveLeft Unit:=wdWord, Count:=1, Extend:=wdMove

    Selection.MoveRight Unit:=wdWord, Count:=1, Extend:=wdExtend

    ‘ Store the digits in a variable

    sDigits = Trim(Selection.Text)

    If Val(sDigits) > 999999 Then

        If Val(sDigits) <= 999999999 Then

            sBigStuff = Trim(Int(Str(Val(sDigits) / 1000000)))

            ‘ Create a field containing the big digits and

            ‘ the cardtext format flag

            Selection.Fields.Add Range:=Selection.Range, _

              Type:=wdFieldEmpty, Text:=»= » + sBigStuff + » * CardText», _

              PreserveFormatting:=True

            ‘ Select the field and copy it

            Selection.MoveLeft Unit:=wdWord, Count:=1, Extend:=wdExtend

            sBigStuff = Selection.Text & » million «

            sDigits = Right(sDigits, 6)

        End If

    End If

    If Val(sDigits) <= 999999 Then

        ‘ Create a field containing the digits and the cardtext format flag

        Selection.Fields.Add Range:=Selection.Range, _

          Type:=wdFieldEmpty, Text:=»= » + sDigits + » * CardText», _

          PreserveFormatting:=True

        ‘ Select the field and copy it

        Selection.MoveLeft Unit:=wdWord, Count:=1, Extend:=wdExtend

        sDigits = sBigStuff & Selection.Text

        ‘ Now put the words in the document

        Selection.TypeText Text:=sDigits

        Selection.TypeText Text:=» «

    Else

        MsgBox «Number too large», vbOKOnly

    End If

How to Convert Number into Word in MS Word in Shortcut Key,convert number into word in word 2007,shortcut key to convert number into word in indian rupees,how to convert number into words,word 2003,word 2007,word 2013,word 2010,convert number into words in Microsoft Word,Micros,shortcut key to words to number,change number into words,words number,convert dollar into words,convert rupees into words,number to word,how to do,how to make number into word

3.    Now you are ready to convert number into word, just keep the cursor on number and click “Micros-view Micro” and click on “Run”, but using mouse takes time, lets make shortcut key for this.

4.   Right click on top, click on “Customize Quick Access toolbar” and click on “Customize”

How to Convert Number into Word in MS Word in Shortcut Key,convert number into word in word 2007,shortcut key to convert number into word in indian rupees,how to convert number into words,word 2003,word 2007,word 2013,word 2010,convert number into words in Microsoft Word,Micros,shortcut key to words to number,change number into words,words number,convert dollar into words,convert rupees into words,number to word,how to do,how to make number into word

5.    Go down in “Categories” select “Macros” insert your shortcut key in new shortcut key box.  Click on “Assign” and “Close” 

How to Convert Number into Word in MS Word in Shortcut Key,convert number into word in word 2007,shortcut key to convert number into word in indian rupees,how to convert number into words,word 2003,word 2007,word 2013,word 2010,convert number into words in Microsoft Word,Micros,shortcut key to words to number,change number into words,words number,convert dollar into words,convert rupees into words,number to word,how to do,how to make number into word

     Now just click shortcut key whenever you want to convert number into words

Watch video tutorial… Please like, share & subscribe 

Numbers In Words

This translator converts numbers into words (or numbers to letters, if that makes more sense). Write «1» in the box on the left, and «one» will appear on the right. It converts very large numbers into their word form — see if you can find the biggest! (Hint: You’ll need more than 1000 digits!!) I’m pretty sure this translator is the best numbers to words converter on the whole internet in terms of being able to convert craaazzy large numbers into words form. I didn’t really have any particular use case in mind when I made this generator, but hopefully you have some need for numbers in words format, and can use this to help solve your problem :)

Many people will likely know the number «googol» (after which the famous tech company «Google» is named) — it’s the digit «1» with one hundred zeros after it — a number which is dozens of orders of magnitude greater than the number of atoms in the visible universe. It’s ridiculously big. But who would have know that the named numbers go hundreds or orders of magnitude higher than this?! If you can find the highest named number by typing digits in the box, post it in the comments!

It’s worth noting that there are often a few different possible names which can be used for the same number. For example, a googol can also be called ten duotrigintillion, ten thousand sexdecillion, or ten sexdecilliard. Since these numbers are very rarely used, there is not standard or governing body and so it’s a bit of a wild west. In trying to create a useful numbers ot words translator I figured I’d just try to translate each number into the most commonly used name, and one that is consistent with the rest of the number names.

To slightly complicate the issue further, there are multiple possible spellings of the same name. So for example, we can spell the aforementioned number as duotrigintillion or dotrigintillion. Number names, and number spelling are fairly consistent for the first few dozen orders of magnitude after the number one, but after that, they begin to diverge.

If you’re interested in these nomenclature issues, and the history behind them, have a look at this wiki article and also this one.

It’s interesting that standard «dictionary» words for very large numbers didn’t appear in English until around the 1400s. The words bymillion and trimillion appeared for the first time in a 1475 manuscript of Jehan Adam.
large written numbers
Some languages have a very small emphasis on numbers. For example, the Pirahã people are thought to have no numbers in their language at all. They appear to only have words for «more» and «few». They also have no grammatical distiction between singular and plural — for example, the word for «people» is the same as the word for «person».

All thanks to Flambino for providing the script that runs this translator! I also had to use big.js by @MikeMcl, since the numbers are far too big for javascript to handle with it’s built-in types. It turns out that (when you want to get the names of big numbers), writing working code to translate numbers into words isn’t the easiest of tasks! Huge thanks to these two guys for making my life a tonne easier.

If you’ve got any suggestions, or if there’s any errors in the word-form of the numbers, please let me know! Thanks :)

Numbers to Words Converter is easy to use tool to convert Numbers to Readable Strings. Copy, Paste, and Convert.

A Number to Word converter is a tool or program that converts a numerical value (such as 100,000,000) into its equivalent written form (such as «One Hundred Million»).

This tool is typically used in financial or banking applications to convert numerical values into written form for check writing, invoicing, or other similar tasks.

They can also be used in different applications where it is necessary to convert numerical values into written form, such as in academic, educational, or research contexts.

Number-to-Word converters are available in many programming languages, such as Java, C++, C#, Javascript, and many more. This tool is designed to make numbers easier to read and understand.

What can you do with Number to Text?

  • Convert Numbers to Words is a very unique tool to convert Numbers for US Dollar, India Rupees, British Pound and Euro.
  • This tools supports Thousand, Million, Billion, Trillion, Quadrillion, Quintillion, Sextillion, Septillion, Octillion and Nonillion
  • This tool allows loading the Numbers URL, which loads Numbers and converts to Words. Click on the URL button, Enter URL and Submit.
  • Users can also convert Numbers File to Easy to read words by uploading the file.
  • Converted words can be converted into UPPER CASE, lower case and Title Case.
  • Convert Number to Words Calculator Online works well on Windows, MAC, Linux, Chrome, Firefox, Edge, and Safari.

Example of Numbers

Numbers Try it.

100,000,000

Output: Numbers to Words

ONE HUNDRED MILLION 

For Advanced Users

External URL

Load External URL in Browser URL like this https://codebeautify.org/number-to-word-converter?url=external-url

https://codebeautify.org/number-to-word-converter?url=https://gist.githubusercontent.com/cbmgit/3fcf7639701a247cfef086de5b376627/raw/textsample.txt

Data as Parameter

Load Data in Browser URL input like this https://codebeautify.org/number-to-word-converter?input=inputdata

https://codebeautify.org/number-to-word-converter?input=10,000,000

Excel for Microsoft 365 Excel 2021 Excel 2019 Excel 2016 Excel 2013 Excel 2010 More…Less

Excel doesn’t have a default function that displays numbers as English words in a worksheet, but you can add this capability by pasting the following SpellNumber function code into a VBA (Visual Basic for Applications) module. This function lets you convert dollar and cent amounts to words with a formula, so 22.50 would read as Twenty-Two Dollars and Fifty Cents. This can be very useful if you’re using Excel as a template to print checks.

If you want to convert numeric values to text format without displaying them as words, use the TEXT function instead.

Note: Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the VBA programming language, and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure. However, they will not modify these examples to provide added functionality, or construct procedures to meet your specific requirements.

Create the SpellNumber function to convert numbers to words

  1. Use the keyboard shortcut, Alt + F11 to open the Visual Basic Editor (VBE).

  2. Click the Insert tab, and click Module.

    On the Insert menu, click Module.

  3. Copy the following lines of code.

    Note: Known as a User Defined Function (UDF), this code automates the task of converting numbers to text throughout your worksheet.

    Option Explicit
    
    'Main Function
    
    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 & " Cents"
    
    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

  4. Paste the lines of code into the Module1 (Code) box.

    Code pasted in the Module1 (Code) box.

  5. Press Alt + Q to return to Excel. The SpellNumber function is now ready to use.

    Note: This function works only for the current workbook. To use this function in another workbook, you must repeat the steps to copy and paste the code in that workbook.

Top of Page

Use the SpellNumber function in individual cells

  1. Type the formula =SpellNumber(A1) into the cell where you want to display a written number, where A1 is the cell containing the number you want to convert. You can also manually type the value like =SpellNumber(22.50).

  2. Press Enter to confirm the formula.

Top of Page

Save your SpellNumber function workbook

Excel cannot save a workbook with macro functions in the standard macro-free workbook format (.xlsx). If you click File > Save. A VB project dialog box opens. Click No.

In the VB project dialog box, click No.

You can save your file as an Excel Macro-Enabled Workbook (.xlsm) to keep your file in its current format.

  1. Click File > Save As.

  2. Click the Save as type drop-down menu, and select Excel Macro-Enabled Workbook.

  3. Click Save.

Top of Page

See Also

TEXT function

Need more help?

Понравилась статья? Поделить с друзьями:
  • Convert number to word python
  • Convert mathtype to word formula
  • Convert lit to word
  • Converter from excel to pdf скачать бесплатно
  • Converter from djvu to word