ExcelUnpackUnpack Excel, one formula at a time.
Log inSign up

Lesson 50 · Working with text

The TEXT function in Excel

The TEXT function shows a number in a format you choose, like $3.50 or 15%. It is most useful when you join a number into a sentence.

Practice this lesson →Pro lesson. The first 4 lessons are free.

What you will learn

  • Format a number as dollars or percent with TEXT
  • Join formatted numbers into a sentence

How it works

=TEXT(B2,"$0.00") shows 3.5 as $3.50.

=TEXT(C2,"0%") shows 0.15 as 15%.

Join TEXT with & to build a sentence: ="Price: "&TEXT(B2,"$0.00").

Formulas at a glance

=TEXT(B2,"$0.00")$3.50
=TEXT(C2,"0%")15%

Example

Write the formula to make a label like "Price: $12.00" for the Cap.

ABCDEF
1ItemPriceDiscountLabelSaleDiscount $
2Cap$12.0015%
3Mug$8.5010%
4Tote$15.0020%
5Pen$2.255%

Click D2 and type ="Price: "&TEXT(B2,"$0.00"), then press Enter.

The answer is Price: $12.00.

When to use it

  • Sentences like "Price: $3.50"
  • Showing a percent inside a label
  • Formatting dates in a sentence

Common mistakes

  • Using TEXT on numbers you will add upTEXT gives text. Keep the real number for math.
  • Forgetting the quotes on the formatFormats go in quotes: "$0.00".
  • Joining a number without TEXTYou get 3.5 instead of $3.50. Wrap it in TEXT.

Practice it on a real sheet

Reading is a start. Doing it is how it sticks. This lesson walks you through every click on a live spreadsheet and checks each answer.

The TEXT function in Excel: how it works, with examples · ExcelUnpack