You are on page 1of 14

Microsoft Excel

Logic and Text Functions


Text Functions
CONCATENATE
Combines several text/numerical strings into
one string
Spaces between strings are defined by
<quotation mark><space><quotation mark>
or ( )

CONCATENATE
=CONCATENATE(A5, ,B5, ,C5, ,D5)

LEFT, RIGHT
Displays the first n digits to the
left/right of a text value
=LEFT(text,# chars)
=RIGHT(text,# chars)



MID
Displays the first n characters from
starting point x in the middle of a text
value
=MID(text, start num, # chars.)



UPPER, LOWER
converts all text in the string to the
upper/lower case
Logical Functions
IF
=IF(condition, value if true, value if false)
=IF(condition, then, else)

Read GRADE
If GRADE >= 60,
then Print Student Passed
else Print Student Failed
endif
OR
Multiple conditions wherein only
one needs to be satisfied in order
for a statement to be true
=OR(condition1,condition2,)

AND
Multiple conditions wherein all
must be satisfied in order for the
statement to be true
=AND(condition1,condition2,)
Read GRADE
If GRADE >= 60,
If GRADE>=75
then Print Special Course
else Print Student Passed
else Print Student Failed
endif
IFERROR
Masks erroneous computations
(#REF!, #VALUE!, #DIV/0!) by
displaying a pre-set message
=IFERROR(value, value if error)

You might also like