0% found this document useful (0 votes)
3 views4 pages

Course 6 Text Functions

The document provides an overview of various text functions in Excel, including CONCATENATE, LEFT, RIGHT, UPPER, LOWER, PROPER, MID, LEN, TEXT, and REPT. Each function is explained with its syntax and examples of usage, demonstrating how to manipulate and format text data. Additionally, a translation of the function names from English to French is included.

Uploaded by

Thayaa Melizou
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views4 pages

Course 6 Text Functions

The document provides an overview of various text functions in Excel, including CONCATENATE, LEFT, RIGHT, UPPER, LOWER, PROPER, MID, LEN, TEXT, and REPT. Each function is explained with its syntax and examples of usage, demonstrating how to manipulate and format text data. Additionally, a translation of the function names from English to French is included.

Uploaded by

Thayaa Melizou
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Second year

Module : Informatique4

Course N° 6
Text functions
A text function is a function that has an alphanumeric value as a parameter or that
returns an alphanumeric value or both at the same time.
In practice, these text functions are applied to codes (exp: bank code, vehicle number,
bar code of a merchandise, etc.)
Please note: an alphanumeric code does not necessarily contain letters, for example:
0014536
1- The CONCATENATE function
Allows you to assemble several character chains to form only one.
Syntax: =CONCATENATE (text1; text2; ...) but also =Ref_cellule&Ref_cellule& …
The & sign is then called a concatenation operator.
Important: when merging cell contents, you must always think about space. This
must then appear between quotation marks.
Application :
A B
1 Nom Prénom
2 Youcefi Mohammed
… …
The formulas for Concatenate:
Possible formulas To insert a space To insert a comma
= CONCATENATE(A2;B2) = CONCATENATE(A2;" ";B2) = CONCATENATE(A2;" , " ;B2)
= A2&B2 = A2&" "&B2 = A2&" , "&B2
YoucefiMohammed Youcefi Mohammed Youcefi , Mohammed

2. Left and Right functions:


Allows you to extract the first or last characters from a TEXT according to the length
indicated in the function.
Syntax:
=RIGHT(Text; number), =LEFT(Text; number)
• Text: is the text chain or the reference to a cell from which we want to extract the
last characters.
• Number: indicates the number of characters to extract.
Example:
=left("This is an example";4) = This
=right("This is an example";3) = ple
Page : 1 / 4
3. Upper and lower functions:
This formula allows you to convert the text in a cell to UPPER CASE or LOWER CASE.
syntax: =UPPER (Text) and =LOWER (Text)
Text: refers to a cell where some or all of the text appears in lowercase, and
converts it to uppercase and vice versa.
Example: In A1 you have the text "hello".
In B1 we write the following formula: =UPPER(A1).
The result is: HELLO
The same thing for the LOWER function.
4. The PROPER Function:
This formula allows you to capitalize the first letter of each word of text contained
in a cell and convert all others letters to lowercase.
Syntax: =PROPER(text)
text: refers to a cell where text appears all or part in lowercase, and converts it to
lowercase by adding an uppercase letter at the beginning of each word.
Example: In A1 you have the text “mohamed”.
In B1 we write the following formula: =PROPER(A1)
The result is: Mohamed

5. The Function MID:

Allows you to extract one or more characters from the middle of a text.
Syntax: MID (text; start_num; char_nbr)
•text: Represents the text containing the characters to extract.
•start_num: Represents the position in the text of the first character to extract.
•nbr_char: The number of characters to extract.
Example: Consider an array containing several character strings. Each character
string is built on an identical format. The goal is to extract the identifier indicated in
this character string. This information is located at the 31st character and consists of
four digits (Example for line 3: The identifier is 1587)
important: A space is considered a character.

code

Page : 2 / 4
6.The LEN function

LEN returns the number of characters in a TEXT. (length of a text)


Syntax: =LEN(text)
text: Represents the character chain whose number of characters we want to count.
Note: Spaces are considered characters.
Example: Consider a list of words.
The objective is to define the number of
letters in each word.

Preview : 

7. Text function
Converts a numeric value(number, date, time..) to text using a number format.
Syntax: =TEXT(value; text_format)
value: represents a numeric value, a
formula whose result is a numeric value, or
a reference to a cell containing a numeric
value.
text_format: is a numeric format in the
form of a text chain enclosed in quotation
marks.
Example : 

8. REPT function
The REPT( ) function is used to repeat text or the contents of a cell a certain number of times.

Syntax: =REPT(text;Nbtimes)
• text: represents the text to repeat.
• Nbtimes: is a positive number indicating the number of repetitions.
So, REPT("A";5) returns the result AAAAA, or if the content of cell C2 is the
character A, REPT(C2;3) returns AAA.

Example

Page : 3 / 4
In this example we have codes in column C that must be completed with zero (0) so
that the complete code is 9 characters long:

TRADUCTION :
ENGLISH FRENCH
CONCATENATE CONCATENER
Left GAUCHE
Right DROITE
Upper MAGISCULE
Lower MINISCULE
PROPER NOMPROPRE
MID STXT
LEN NBCAR
Text TEXTE
REPT REPT

Page : 4 / 4

You might also like