• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Microsoft Excel Tips and Tricks - Computergaga

  • Home
  • Excel Online Courses
  • Excel Functions List
  • Free Downloads
  • Blog
  • Tutorials
  • About
Home / Formulas / Excel Text Function with Examples

Excel Text Function with Examples

The Excel TEXT function is used to convert a numeric value to text in a specified number format. This function is really useful when concatenating strings that will contain a numeric value.

Excel TEXT Function Anatomy

The TEXT function in Excel requires two arguments – the text that needs formatting, and the format you want to use.

=TEXT(value, format_text)

It is very useful for displaying numbers that are used in text strings still in their number format. Examples of this include when using summary text on reports or in chart labels such as “Total sales this quarter: £4,073”.

Convert Text Date to a Date Format

In the example below, the following formula has been entered into cell C2. The date loses its format when combined in a text string. This is now useless.

=A2&" - "&B2
Date loses formatting when concatenated with text

By using the TEXT function, the date can be concatenated, and an appropriate date format applied.

The number format must be entered within the double quote marks. If these are omitted, the #NAME? error is displayed.

The following formula formats the date in a dd/mm/yyyy format.

=A2&" - "&TEXT(B2,"dd/mm/yyyy")
Format text as a date in Excel

You can specify the date format you want by using the same formatting characters that you get when applying custom formatting in Excel.

The examples below show some alternative representations of the date.

dd mmmm yyyy12 April 1974
dddd dd mmm yyyyFriday 12 Apr 1974
ddmmyyyy12041974

Convert Text Number to a Currency Format

The Excel TEXT function can be useful for displaying summary text that you see on reports and dashboards in Excel. For example, “Total spend for the current month is £2,930.89”.

The formula below calculates the net income value, converts it to text and applies a currency format.

="Net income for this month is "&TEXT(G2-H2,"£#,###.00")
Excel TEXT function to display text numbers in a currency format

When applying number formatting the # symbol displays a number only if necessary, and a 0 forces the display of a number.

The TEXT function is very versatile and there are many examples for its use.

Related Posts:

  • Live currency exchange rate in Excel thumbnail
    LIVE Currency Exchange Rate in Excel
  • Moving average in Excel thumbnail
    Moving Average in Excel
  • Calculate age in Excel thumbnail
    How to Calculate Age in Excel
  • SWITCH function feature
    Excel SWITCH Function - Nested IF Function Alternative

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Posts

  • Excel SWITCH Function – Nested IF Function Alternative
  • Sum Formulas Only in Excel
  • How to Calculate Age in Excel
  • Custom Sort in Excel
  • Case Sensitive Lookup with XLOOKUP in Excel
Advanced Excel Success book

Footer

Contact

[email protected]

LinkedIn Twitter YouTube

Useful Links

  • Home
  • Excel Online Courses
  • Tutorials
  • Sitemap
  • Privacy Policy
  • Jobs by Jooble

Course Topics

  • Blog
  • Charts
  • Courses
  • Dashboards
  • Downloads
  • Excel Tips
  • Formulas
  • Mail Merge
  • Office
  • PivotTables
  • Power BI
  • Power Pivot
  • Power Query
  • VBA

Join Our Mailing List

© Copyright 2009 Computergaga · All Rights Reserved ·