Text Functions
Text Functions
TEXT FUNCTIONS:
CONCATENATE CONCATENATE(text1, text2, ...) =CONCATENATE(A2, " - ", John Doe - Sales Combines the name and department with a
B2) dash
TEXTJOIN TEXTJOIN(delimiter, ignore_empty, =TEXTJOIN(", ", TRUE, A2, John Doe, Sales, 01- Combines name, department, and start date
text1, text2, ...) B2, C2) Jan-2023 with comma delimiters
LEFT LEFT(text, num_chars) =LEFT(A2, 4) John Extracts the first 4 characters of the name
RIGHT RIGHT(text, num_chars) =RIGHT(A2, 3) Doe Extracts the last 3 characters of the name
MID MID(text, start_num, num_chars) =MID(A2, 2, 3) ohn Extracts 3 characters from the middle of the
name
TRIM TRIM(text) =TRIM(A2) John Doe Removes extra spaces from the name
SUBSTITUTE SUBSTITUTE(text, old_text, new_text, =SUBSTITUTE(A2, "Doe", John Smith Replaces "Doe" with "Smith" in the name
[instance_num]) "Smith")
REPLACE REPLACE(old_text, start_num, =REPLACE(A2, 6, 3, "Smith") John Smith Replaces part of the name star ng at
num_chars, new_text) posi on 6 with "Smith"
FIND FIND(find_text, within_text, =FIND("@", D2) 9 Finds the posi on of "@" in the email
[start_num]) address
SEARCH SEARCH(find_text, within_text, =SEARCH("doe", A2) 6 Finds the posi on of "doe" (case-insensi ve)
[start_num]) in the name
TEXT TEXT(value, format_text) =TEXT(C2, "dd-mm-yyyy") 01-01-2023 Converts the start date to "dd-mm-yyyy"
format
EXACT EXACT(text1, text2) =EXACT(A2, "John Doe") TRUE Checks if the name is exactly "John Doe"