Excel: TEXT Function

Share this video:

About the video

TEXT

This function in Excel returns a number in a given number format as text. You can use the TEXT function to embed formatted numbers inside text. The TEXT function is useful when concatenating a formatted number to a text string. Without the TEXT function, the number formatting will be stripped. This is especially problematic with dates, which appear as large serial numbers. With the TEXT function, you can embed a number in text using exactly the number format needed. You can also extract DATE, MONTH, YEAR, DAY from a date. The TEXT function is useful when concatenating a formatted number to a text string.

For example, "Sales last year increased by over $59,100", where the number 59100 has been formatted with a currency symbol and thousands separator". 

Without the TEXT function, the number formatting will be stripped. This is especially problematic with dates, which appear as large serial numbers. With the TEXT function, you can embed a number in text using exactly the number format needed. The TEXT function takes two arguments, value and format_text. Value is the number to be formatted as text and should be a numeric value. If value is already text, no formatting is applied. Format_text is a text string that contains the number formatting codes to apply to value. Supply format_text as a text string enclosed in double quotes (""). 

Arguments of TEXT Function:

value - The number to convert.

format_text - The number format to use.

Share this video: