What does it do?

Converts a numeric value to text and lets you specify the display formatting by using special format strings

Formula breakdown:

=TEXT(value, format text)

What it means:

=TEXT(a numeric value or a formula, a text string enclosed in quotation marks)


The TEXT function in Excel allows you to convert a numeric value to a specific format by using special format strings.

If you have a date and want to show just the month or if you have a large number and want to show it in a thousands format , then the TEXT function is your savior.

An example usage of the TEXT would be:

Following is a demonstration and a table of the different ways you can display a value in Excel by using the TEXT function:

DOWNLOAD EXCEL WORKBOOK

How to Use the Text Formula in Excel

Text

To display As Use this format
1234.59 1234.6 “####.#”
8.9 8.900 “#.000”
0.631 0.6 “0.#”
1234.568 1234.6 “#.0#”
5.25 5 1/4 “# ???/???”
12000 12000 “#,###”
12000 12 “#,”
12200000 12.2 “0.0,,”
Months 1–12 “m”
Months 01–12 “mm”
Months Jan–Dec “mmm”
Months January–December “mmmm”
Months J–D “mmmmm”
Days 1–31 “d”
Days 01–31 “dd”
Days Sun–Sat “ddd”
Days Sunday–Saturday “dddd”
Years 00–99 “yy”
Years 1900–9999 “yyyy”
Hours 0–23 “h”
Hours 00–23 “hh”
Minutes 0–59 “m”
Minutes 00–59 “mm”
Seconds 0–59 “s”
Seconds 00–59 “ss”
Time 4:00 AM “h AM/PM”
Time 4:36 PM “h:mm AM/PM”
Time 4:36:03 PM “h:mm:ss A/P”
Time 36:03.8 “h:mm:ss.00”

 

HELPFUL RESOURCE:

How to Combine VLOOKUP and IFERROR to Replace the #N/A Error in Excel

If you like this Excel tip, please share itEmail this to someone

email

Pin on Pinterest

Pinterest

Share on Facebook

Facebook

Tweet about this on Twitter

Twitter

Share on LinkedIn

Linkedin

Share on Google+

Google+

Related Posts

Add Comma After the Surname with Excel’s SUB... What does it do? It replaces specific text in a text string i.e. Substitutes new text for old text in a text string. Formula breakdown: =SUBSTITUTE(text, old_text, new_text, ) What it means: =SUBSTITUTE(This cell, From this TEXT character, To this TEXT character, )...
Vlookup Approximate Match in Excel What does it do? Searches for an approximate value in the first column of a table array and returns a value in the same row from another column (to the right) in the table array. Formula breakdown: =VLOOKUP(lookup_value, table_array, col_index_num, ) Wha...
Advanced SUMPRODUCT Function: Conditional Sum Another great way that you can use the SUMPRODUCT function is to create a conditional sum criteria. For example, you may want to find out how much sales were made above the $3,000 transactional level.  See how easy it is with this quick SUMPRODUCT example. DOWNLOAD WORKBOOK...
Named Ranges with Vlookup Formula What does it do? Searches for a value in the first column of a table array and returns a value in the same row from another column (to the right) in the table array. Formula breakdown: =VLOOKUP(lookup_value, table_array, col_index_num, ) What it means: =VLOOKUP...