How to Use the VALUETOTEXT Function in Excel

Welcome to the detailed guide on how to convert numerical values into text in Excel and Google Sheets!

Introduction

Converting numerical values into text is frequently necessary in Excel and Google Sheets, particularly when dealing with invoices, checks, or other documents that require numbers to be spelled out.

Syntax

The method for converting numerical values into text shares similarities in both Excel and Google Sheets. Although there isn’t a direct built-in function for this conversion, it can be achieved through a combination of functions such as TEXT, LEN, MID, VLOOKUP, and more. The specific steps required vary depending on the complexity of your needs.

Basic Conversion

Let’s begin with a straightforward example in Excel: say we have a numerical value in cell A1 and we want to convert this into text in cell B1.

A B
1234 =UPPER(TEXT(A1,”[$-0809]dd mmmm yyyy”))

In this instance, the Excel formula converts the numerical value 1234 into the text “ONE THOUSAND TWO HUNDRED THIRTY-FOUR.” You can adjust this formula based on your formatting preferences and the language of the text output.

Advanced Conversion

For more intricate conversions, such as those involving currency, decimals, or specialized formatting, you might need to develop a custom function in Excel using VBA (Visual Basic for Applications). On the other hand, Google Sheets does not support VBA, so in those cases, you can opt for JavaScript within Google Apps Script.

Implementation in Google Sheets

In Google Sheets, converting numerical values to text can be done by employing a set of functions. Consider this example:

A B
5678 =ARRAYFORMULA(VLOOKUP(SPLIT(REGEXREPLACE(TEXT(A1,”0000″),”(\\d)”,”$1-“),”[-]”),{1,”ONE”;2,”TWO”;3,”THREE”;4,”FOUR”;5,”FIVE”;6,”SIX”;7,”SEVEN”;8,”EIGHT”;9,”NINE”;0,”ZERO”},2,FALSE))

This formula in Google Sheets translates the numeric value 5678 into the text “FIVE SIX SEVEN EIGHT.” You can modify the formula according to your specific needs.

Conclusion

Converting numerical values into text is a crucial feature in both Excel and Google Sheets, enriching the readability of the data presented in various documents and reports. By mastering the syntax and understanding the appropriate combination of functions, you can effectively convert numerical values into text as required.

More information: https://support.microsoft.com/en-us/office/5fff61a2-301a-4ab2-9ffa-0a5242a08fea

Other functions
Returns an array of text values from any specified range
Changes full-width (double-byte) English letters or katakana within a character string to half-width (single-byte) characters
Converts a number to text, using the ß (baht) currency format
Returns the character specified by the code number
Removes all nonprintable characters from text
Returns a numeric code for the first character in a text string
Combines the text from multiple ranges and/or strings, but it doesn't provide the delimiter or IgnoreEmpty arguments
Joins several text items into one text item
Changes half-width (single-byte) English letters or katakana within a character string to full-width (double-byte) characters
Converts a number to text, using the $ (dollar) currency format
Checks to see if two text values are identical
Finds one text value within another (case-sensitive)
Formats a number as text with a fixed number of decimals
Changes half-width (single-byte) characters within a string to full-width (double-byte) characters
Returns the leftmost characters from a text value
Returns the number of characters in a text string
Converts text to lowercase
Returns a specific number of characters from a text string starting at the position you specify
Converts text to number in a locale-independent manner
Extracts the phonetic (furigana) characters from a text string
Capitalizes the first letter in each word of a text value
Replaces characters within text
Repeats text a given number of times
Returns the rightmost characters from a text value
Finds one text value within another (not case-sensitive)
Substitutes new text for old text in a text string
Converts its arguments to text
Formats a number and converts it to text
Combines the text from multiple ranges and/or strings, and includes a delimiter you specify between each text value that will be combined If the delimiter is an empty text string, this function will effectively concatenate the ranges
Removes spaces from text
Returns the Unicode character that is references by the given numeric value
Returns the number (code point) that corresponds to the first character of the text
Converts text to uppercase
Converts a text argument to a number