TEXT

Textintermediate

TEXT converts a number or date into a formatted text string. It's essential when you need to display dates in a specific format, add number formatting inside CONCATENATE, or build text that includes formatted values. The result is always text (not a number), so don't use it in calculations.

Syntax

Excel:=TEXT(value, format_text)
Google Sheets: Same syntax

Parameters

valueThe number or date to format.
format_textThe format code (e.g., "MM/DD/YYYY", "$#,##0.00", "0%").

? = optional parameter

Worked Example

Display an invoice date as 'January 2025' instead of '2025-01-15'.

Row numbersAD
Header rowinvoice_idinvoice_dateformatted
2INV-10012025-01-15January 2025
3INV-10042025-02-03February 2025
4INV-10082025-03-05March 2025

Formula

=TEXT(B2, "MMMM YYYY")

Result

January 2025

TEXT takes the date in B2 and formats it as the full month name followed by the four-digit year. In this sample, B2 contains 2025-01-15, so the formatted result is 'January 2025'.

Practice Exercises

2 exercises - work through each one using the data table below

Exercise 1 of 2beginner
#TEXT-001

Question

Format the amount of the first invoice (INV-1001) as a dollar string with commas and two decimal places, like '$12,500.00'. What format code would you use in the TEXT formula?

Dataset

Showing rows 1-5

Download CSV
Row numbersABC
Header row
2INV-1001Cloudline Software$12,500.00
3INV-1002Apex Office Supply$487.50
4INV-1003Summit Consulting Group$18,750.00
5INV-1004Meridian Travel Co.$3,200.00
6INV-1005Forge & Frame Creative$7,600.00
7

Scroll to explore the table, then sort or filter by column as needed.

Hints

Your Answer

Exercise 2 of 2intermediate
#TEXT-002

Question

Create a sentence for the first invoice that reads: 'Invoice INV-1001 dated Jan 15, 2025 for $12,500.00'. Use CONCATENATE or & with TEXT to format the date and amount.

Dataset

Showing rows 1-5

Download CSV
Row numbersABCD
Header row
2INV-1001Cloudline Software2025-01-15$12,500.00
3INV-1002Apex Office Supply2025-01-18$487.50
4INV-1003Summit Consulting Group2025-01-22$18,750.00
5INV-1004Meridian Travel Co.2025-02-03$3,200.00
6INV-1005Forge & Frame Creative2025-02-08$7,600.00
7

Scroll to explore the table, then sort or filter by column as needed.

Hints

Your Answer

Want more practice?

Test Me mode randomizes exercises across all formulas without telling you which formula to use.

Try Test Me ->