Professional Documents
Culture Documents
AE314
Property of and for the exclusive use of SLU. Reproduction, storing in a retrieval system, distributing, uploading or posting online, or transmitting in any form or by any
means, electronic, mechanical, photocopying, recording, or otherwise of any part of this document, without the prior written permission of SLU, is strictly prohibited.
Module 03: Computer Applications in Business
Unit 02: Spreadsheet Management
Once you’ve practiced already the manner on how to compose functions and use them, we move on to TEXT FUNCTIONS.
Text functions, as the name indicates, applies to text as their data type. These functions allow you to manipulate text for
easier sorting, filtering, and reporting later on.
Example of CONCATENATE:
A B C D
1 Data Formula
2 brook trout Andreas Hauser =CONCATENATE("Stream population for ", A2, " ", A3, " is ", A4, "/mile.")
3 species Fourth Pine =CONCATENATE(B2, " ", C2)
4 32 =CONCATENATE(C2, ", ", B2)
5 =CONCATENATE(B3, " & ", C3)
6 =B3 & " & " & C3
7 Result
8 Stream population for brook trout species is 32/mile.
9 Andreas Hauser
10 Andreas, Hauser
11 Fourth & Pine
12 Fourth & Pine
Some of the text functions’ results are numbers, that can be used as arguments to other functions, and can be used to
analyze your data.
Function Name LEFT
Type of Function Text - Extraction
Description Returns the first character or characters in a text string or cell, based on the number of characters
you specify.
Syntax =LEFT(text, [num_chars])
text – required, the text string that contains the characters you want to extract.
num_chars – optional, specifies the number of characters you want LEFT to extract.
Remarks Num_chars must be greater than or equal to zero.
If num_chars is greater than the length of text, LEFT returns all of text.
If num_chars is omitted, it is assumed to be 1.
Example of LEFT:
A B C D
1 Data Formula Result Description
2 Baguio =LEFT(A2, 3) Bag The first three characters in the string
3 SLU =LEFT(A3) S The first character in the string
Example of RIGHT:
A B C D
1 Data Formula Result Description
2 Baguio =RIGHT(A2, 4) guio The last four characters in the string
3 SLU =RIGHT(A3) U The last character in the string
A B C D
1 Data Formula Result Description
2 Baguio City =MID(A2, 3, 4) guio From the third position, four characters.
3 Saint Louis =MID(A3, 7, 5) Louis From the seventh position, five characters.
Example of LEN:
A B C
1 Data Formula Result
2 Saint Louis University =LEN(A2) 22
3 Kay Audrey Urbano =LEN(A3) 17
Example of LOWER:
A B C
1 Data Formula Result
2 sAinT LoUIs unIvErsITy =LOWER(A2) saint louis university
Example of PROPER:
A B C
1 Data Formula Result
2 sAinT LoUIs unIvErsITy =PROPER(A2) Saint Louis University
Function Name UPPER
Type of Function Text – Formatting
Description Converts text to uppercase.
Syntax =UPPER(text)
text – required, the text you want converted to uppercase. Text can be a reference or text
string.
Example of UPPER:
A B C
1 Data Formula Result
2 sAinT LoUIs unIvErsITy =UPPER(A2) SAINT LOUIS UNIVERSITY
A B C
1 Formula Result Description
2 =REPT("*-", 3) *-*-*- Displays an asterisk and a dash (*-) 3 times.
3 =REPT("-",10) ---------- Displays a dash (-) 10 times.
Example of TRIM:
A B C
1 Data Formula Result
2 Saint Louis University =TRIM(A2) Saint Louis University
Function Name SUBSTITUTE
Type of Function Text
Description Substitutes new_text for old_text in a text string. Use SUBSTITUTE when you want to replace
specific text in a text string; use REPLACE when you want to replace any text that occurs in a
specific location in a text string.
Syntax =SUBSTITUTE(text, old_text, new_text, [instance_num])
text – required, the text or the reference to a cell containing text for which you want to
substitute characters.
old_text – required, the text you want to replace.
new_text – required, the text you want to replace old_text with.
instance_num – optional, specifies which occurrence of old_text you want to replace with
new_text. If you specify instance_num, only that instance of old_text is replaced.
Otherwise, every occurrence of old_text in text is changed to new_text.
Example of SUBSTITUTE:
A B C D
1 Data Formula Result Description
2 Sales Data =SUBSTITUTE(A2, "Sales", "Cost") Cost Data Substitutes Cost for Sales
3 Quarter 1, 2020 =SUBSTITUTE(A3, "1", "2", 1) Quarter 2, 2020 Substitutes first instance of "1" with "2"
4 Quarter 1, 2011 =SUBSTITUTE(A4, "1", "2", 3) Quarter 1, 2012 Substitutes third instance of "1" with "2"
Example of REPLACE:
A B C D
1 Data Formula Description Result
abcdefghijk =REPLACE(A2,6,5,"*") Replaces five characters in abcdefghijk with a single * abcde*k
2
character, starting with the sixth character (f).
3 2009 =REPLACE(A3,3,2,"10") Replaces the last two digits (09) of 2009 with 10. 2010
123456 =REPLACE(A4,1,3,"@") Replaces the first three characters of 123456 with a single @ @456
4
character.
Function Name VALUE
Type of Function Text
Description Converts a text string that represents a number to a number.
Syntax =VALUE(text)
Text – Required. The text enclosed in quotation marks or a reference to a cell containing
the text you want to convert.
Remarks Text can be in any of the constant number, date, or time formats recognized by Microsoft
Excel. If text is not in one of these formats, VALUE returns the #VALUE! error value.
You do not generally need to use the VALUE function in a formula because Excel
automatically converts text to numbers as necessary. This function is provided for
compatibility with other spreadsheet programs.
Example of VALUE:
A B C
1 Formula Description Result
2 =VALUE("$1,000") Number equivalent of the text string "$1,000" 1000
=VALUE("16:48:00")-VALUE("12:00:00") The serial number equivalent to 4 hours and 48 minutes, which is 0.2
3
"16:48:00" minus "12:00:00" (0.2 = 4:48).
Example of FIND:
A B C
1 Data
2 Miriam McGovern
3 Formula Description Result
4 =FIND("M",A2) Position of the first "M" in cell A2 1
5 =FIND("m",A2) Position of the first "M" in cell A2 6
6 =FIND("M",A2,3) Position of the first "M" in cell A2, starting with the third character 8
Function Name SEARCH
Type of Function Text
Description Locates one text string within a cell or second text string, and return the number of the starting
position of the first text string from the first character of the cell or second text string.
Syntax =SEARCH(find_text,within_text,[start_num])
find_text – Required. The text that you want to find.
within_text – Required. The text in which you want to search for the value of the find_text
argument.
start_num – Optional. The character number in the within_text argument at which you
want to start searching.
Remarks This function is NOT case-sensitive
You can use the wildcard characters — the question mark (?) and asterisk (*) — in the
find_text argument. A question mark matches any single character; an asterisk matches
any sequence of characters. If you want to find an actual question mark or asterisk, type a
tilde (~) before the character.
If the value of find_text is not found, the #VALUE! error value is returned.
If the start_num argument is omitted, it is assumed to be 1.
If start_num is not greater than 0 (zero) or is greater than the length of the within_text
argument, the #VALUE! error value is returned.
Example of SEARCH:
A B C
1 Data
2 Statements
3 Profit Margin
4 margin
5 The "boss" is here.
6 Formula Description Result
=SEARCH("e",A2,6) Position of the first "e" in the string in cell A2, starting at the 7
7
sixth position.
=SEARCH(A4,A3) Position of "margin" (string for which to search is cell A4) in 8
8
"Profit Margin" (cell in which to search is A3).
=REPLACE(A3,SEARCH(A4,A3), Replaces "Margin" with "Amount" by first searching for the Profit
9 6,"Amount") position of "Margin" in cell A3, and then replacing that character Amount
and the next five characters with the string "Amount."
=MID(A3,SEARCH(" ",A3)+1,4) Returns the first four characters that follow the first space Marg
10
character in "Profit Margin" (cell A3).
11 =SEARCH("""",A5) Position of the first double quotation mark (") in cell A5. 5
=MID(A5,SEARCH("""",A5)+1, Returns only the text enclosed in the double quotation marks in
12 SEARCH("""",A5,SEARCH("""",A5) cell A5. boss
+1)-SEARCH("""",A5)-1)