0% found this document useful (0 votes)
53 views2 pages

Comp02 - Activity 07

The TEXT function formats numbers as text strings using format codes. It is useful for displaying numbers in a readable format or combining numbers with text. The function converts numbers to text, which makes them difficult to use in calculations, so it is best to keep the original value separate. Common examples of the TEXT function include formatting values as currency, dates, times, percentages, and fractions. Other format codes can be found using the Format Cells dialog box.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views2 pages

Comp02 - Activity 07

The TEXT function formats numbers as text strings using format codes. It is useful for displaying numbers in a readable format or combining numbers with text. The function converts numbers to text, which makes them difficult to use in calculations, so it is best to keep the original value separate. Common examples of the TEXT function include formatting values as currency, dates, times, percentages, and fractions. Other format codes can be found using the Format Cells dialog box.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

ACTIVITY 07

TEXT FUNCTIONS
The TEXT function lets you change the way a number appears by applying formatting to it
with format codes. It's useful in situations where you want to display numbers in a more readable
format, or you want to combine numbers with text or symbols.

The TEXT function converts numbers to text, which may make it difficult to reference in later
calculations. It’s best to keep your original value in one cell, and then use the TEXT function in another cell.
Then, if you need to build other formulas, always reference the original value and not the TEXT function
result.

OVERVIEW
In its simplest form, the TEXT function says:

Formula Description
=TEXT(1234.567,"$#,##0.00") Currency with a thousands separator and 2 decimals, like
$1,234.57. Note that Excel rounds the value to 2 decimal
places.
=TEXT(TODAY(),"MM/DD/YY") Today’s date in MM/DD/YY format, like 03/14/12
=TEXT(TODAY(),"DDDD") Today’s day of the week, like Monday
=TEXT(NOW(),"H:MM AM/PM") Current time, like 1:29 PM
=TEXT(0.285,"0.0%") Percentage, like 28.5%
=TEXT(4.34 ,"# ?/?") Fraction, like 4 1/3
=TRIM(TEXT(0.34,"# ?/?")) Fraction, like 1/3. Note this uses the TRIM function to
remove the leading space with a decimal value.
=TEXT(12200000,"0.00E+00") Scientific notation, like 1.22E+07
=TEXT(1234567898,"[<=9999999]###-####; Special (Phone number), like (123) 456-7898
(###) ###-####")
=TEXT(1234,"0000000") Add leading zeros (0), like 0001234
=TEXT(123456,"##0° 00' 00''") Custom - Latitude/Longitude

 =TEXT(Value you want to format, "Format code you want to apply")


OTHER FORMAT CODES THAT ARE AVAILABLE
You can use the Format Cells dialog box to find the other available format codes:

1. Press Ctrl+1 (+1 on the Mac) to bring up the Format Cells dialog box.

2. Select the format you want from the Number tab.

3. Select the Custom option.

4. The format code you want is now shown in the Type box. In this case, select
everything from the Type box except the semicolon (;) and @ symbol. In the
example below, we selected and copied just mm/dd/yy.

5. Press Ctrl+C to copy the format code, and then press Cancel to dismiss the Format
Cells dialog box

6. Now, all you need to do is press Ctrl+V to paste the format code into your TEXT
formula, like: =TEXT(B2,"mm/dd/yy"). Make sure that you paste the format code
within quotes ("format code"), otherwise Excel will give you an error message.

You might also like