Guide 1 Class 6C SMT 1
Guide 1 Class 6C SMT 1
LEARNING OBJECTIVES :
3.1 Students understand the Text Function Formula in Microsoft Excel / Google Sheets
The LEFT function in Excel returns the specified number of characters (substring)
from the start of a string.
The formula of the LEFT function is as follows:
LEFT(text, [num_chars])
Where:
Text (required) is the text string from which you want to extract a
substring. Usually it is supplied as a reference to the cell containing the
text.
Num_chars (optional) - the number of characters to extract, starting on
the left side of the string.
If num_chars is omitted, it defaults to 1, meaning that a Left
formula will return 1 character.
If num_chars is greater than the total length of text, a Left formula
will return all of text.
The RIGHT function in Excel returns the specified number of characters from
the end of a text string.
The formula of the RIGHT function is as follows:
RIGHT(text, [num_chars])
Where:
Text (required) - the text string from which you want to extract
characters.
Num_chars (optional) - the number of characters to extract, starting
from the rightmost character.
If num_chars is omitted, 1 last character of the string is returned
(default).
If num_chars is greater than the total number of characters in the
string, all characters are returned.
If num_chars is a negative number, a Right formula returns the
#VALUE! error.
In some situations, it may be important not only to compare text in two cells,
but also to compare the character case. Case-sensitive text comparison can
be done using the Excel EXACT function:
EXACT (text1, text2)
Where text1 and text2 are the two cells you are comparing.
IV. Text Function
In its pure essence, TEXT in Excel is used to convert a numeric value to a text
string in a specific format.
The formula for the Excel TEXT function is as follows:
TEXT(value, format_text)
Where:
Value - the numeric value to be converted to text. It can be a number,
date, reference to a cell containing a numeric value or another
function that returns a number or date.
Format_text - the format that you want to apply. It is supplied in the form
of a format code enclosed in the quotation marks, e.g. "mm/dd/yy".
Generally, an Excel TEXT formula is used in the following situations:
VI. EXERCISE 1
Answer the following questions by crossing (X) the correct answers.
1. The function to join different pieces of text together or combine values from
several cells into one cell is ..?
A. Left
B. Mid
C. Right
D. Concatenate
A. + C. -
B. * D. =