Cellgrids Cellgridsby LearnWithRinkesh
Home › Excel tutorials › How to Use the TEXT Function in Excel

How to Use the TEXT Function in Excel to Format Numbers and Dates

By Rinkesh Shah · Business Analyst, 8 years in data · Updated 2026-10-31

▶ Video coming soon

TEXT converts a number or date into text in the format you choose. It is how you control the look of a value inside a sentence.

Syntax

=TEXT(value, format_text)

Dates

Numbers

Use inside a sentence

="Report for "&TEXT(A2, "mmmm yyyy") returns "Report for November 2026". Without TEXT, the date would show as a raw serial number.

Important

Worked example

A2 holds the date 5-Oct-2026. =TEXT(A2,"dd mmm yyyy") returns "05 Oct 2026". =TEXT(A2,"dddd") returns the day name. =TEXT(1234.5,"#,##0.00") returns "1,234.50".

Common mistakes

Frequently asked questions

How do I show leading zeros?

=TEXT(A2,"00000").

Why can I not sum TEXT results?

They are text. Keep the original numbers for calculations.

How do I show a percentage?

=TEXT(A2,"0.0%").

Practice this online, free

Reading is only half of learning Excel. Cellgrids is a free place for online Excel practice: solve Excel formula exercises in a live spreadsheet, prepare for Excel interview questions, and work through business case studies built for data analytics and business analytics roles.

Practice these formulas: TEXT, CONCAT, VALUE.

Start Excel practice → Case studies