This reference lists 43 Excel text functions, ordered by frequency of use, with high-frequency functions marked ⭐. Each function includes its syntax and an example.
| Function | Description | Example |
|---|---|---|
CONCAT ⭐ |
Combines the text from multiple ranges and/or strings, but it doesn't provide the delimiter or IgnoreEmpty arguments | =CONCAT(A1,B1,C1) — Joins the text of A1, B1 and C1 together |
CONCATENATE ⭐ |
Joins several text items into one text item | =CONCATENATE(A1,B1) — Joins the text of A1 and B1 (CONCAT is recommended now) |
FIND ⭐ |
Finds one text value within another (case-sensitive) | =FIND("c",A1) — Finds the position of "c" in A1, case-sensitive |
LEFT ⭐ |
Returns the leftmost characters from a text value | =LEFT(A1,3) — Extracts 3 characters from the left of the text in A1 |
LEN ⭐ |
Returns the number of characters in a text string | =LEN(A1) — Returns the number of characters in the text in A1 |
MID ⭐ |
Returns a specific number of characters from a text string starting at the position you specify | =MID(A1,2,3) — Extracts 3 characters from the text in A1 starting at position 2 |
REPLACE ⭐ |
Replaces characters within text | =REPLACE(A1,1,3,"ABC") — Replaces 3 characters starting at position 1 of A1 with "ABC" |
RIGHT ⭐ |
Returns the rightmost characters from a text value | =RIGHT(A1,3) — Extracts 3 characters from the right of the text in A1 |
SEARCH ⭐ |
Finds one text value within another (not case-sensitive) | =SEARCH("c",A1) — Finds the position of "c" in A1, case-insensitive |
SUBSTITUTE ⭐ |
Substitutes new text for old text in a text string | =SUBSTITUTE(A1,"old","new",1) — Replaces the first occurrence of the old text with the new text in A1 |
TEXT ⭐ |
Formats a number and converts it to text | =TEXT(TODAY(),"yyyy-mm-dd") — Formats today's date as the text "2024-01-19" |
TRIM ⭐ |
Removes spaces from text | =TRIM(A1) — Removes extra spaces between words in A1, keeping single spaces |
ASC |
Changes full-width (double-byte) English letters or katakana within a character string to half-width (single-byte) characters | =ASC("ABC") — Converts full-width ABC to half-width ABC |
BAHTTEXT |
Converts a number to text, using the ß (baht) currency format | =BAHTTEXT(123) — Converts 123 to Thai text |
CHAR |
Returns the character specified by the code number | =CHAR(65) — Returns the character for ASCII code 65, "A" |
CLEAN |
Removes all nonprintable characters from text | =CLEAN(A1) — Removes non-printable characters from cell A1 |
CODE |
Returns a numeric code for the first character in a text string | =CODE("A") — Returns the ASCII code 65 of the character "A" |
DBCS |
Changes half-width (single-byte) English letters or katakana within a character string to full-width (double-byte) characters | =DBCS("ABC") — Converts half-width ABC to full-width ABC |
DOLLAR |
Converts a number to text using currency format | =DOLLAR(1234.56,2) — Formats 1234.56 as the currency text "$1,234.56" |
EXACT |
Checks to see if two text values are identical | =EXACT(A1,B1) — Checks whether A1 and B1 are exactly the same, case-sensitive |
FINDB |
Finds one text value within another (case-sensitive) | =FINDB("China",A1) — Finds the position of text counted in bytes |
FIXED |
Formats a number as text with a fixed number of decimals | =FIXED(1234.567,2) — Formats the number as the text "1,234.57" with two decimals |
LEFTB |
Returns the leftmost characters from a text value | =LEFTB(A1,4) — Extracts 4 bytes (2 Chinese characters) from the left of A1 |
LENB |
Returns the number of bytes used to represent the characters in a text string | =LENB(A1) — Returns the byte length of the text in A1 (Chinese counts as 2) |
LOWER |
Converts text to lowercase | =LOWER("ABC") — Converts "ABC" to lowercase "abc" |
MIDB |
Returns a specific number of characters from a text string starting at the position you specify | =MIDB(A1,3,4) — Extracts 4 bytes from A1 starting at byte position 3 |
NUMBERVALUE |
Converts text to number in a locale-independent manner | =NUMBERVALUE("1,234.5",",",".") — Converts text to a number using the given separators |
PHONETIC |
Extracts the phonetic (furigana) characters from a text string | =PHONETIC(A1) — Extracts the phonetic (furigana) characters from Japanese text |
PROPER |
Capitalizes the first letter in each word of a text value | =PROPER("hello world") — Converts "hello world" to "Hello World" |
REPLACEB |
Replaces characters within text | =REPLACEB(A1,1,4,"ABC") — Replaces characters in text counted in bytes |
REPT |
Repeats text a given number of times | =REPT("*",5) — Returns "*****" repeated 5 times |
RIGHTB |
Returns the rightmost characters from a text value | =RIGHTB(A1,4) — Extracts 4 bytes from the right of A1 |
SEARCHB |
Finds one text value within another (not case-sensitive) | =SEARCHB("China",A1) — Finds the position of text counted in bytes, case-insensitive |
T |
Converts its arguments to text | =T(A1) — Returns the text in A1 if it is text, otherwise an empty string |
TEXTAFTER |
Returns text that occurs after given character or string | =TEXTAFTER(A1,",") — Returns the text after the comma delimiter |
TEXTBEFORE |
Returns text that occurs before a given character or string | =TEXTBEFORE(A1,",") — Returns the text before the comma delimiter |
TEXTJOIN |
Text: Combines the text from multiple ranges and/or strings | =TEXTJOIN(",",TRUE,A1:A10) — Joins A1:A10 with commas, ignoring empty cells |
TEXTSPLIT |
Splits text strings by using column and row delimiters | =TEXTSPLIT(A1,",") — Splits A1 into an array by commas |
UNICHAR |
Returns the Unicode character that is references by the given numeric value | =UNICHAR(65) — Returns the character for Unicode 65, "A" |
UNICODE |
Returns the number (code point) that corresponds to the first character of the text | =UNICODE("A") — Returns the Unicode value 65 of the character "A" |
UPPER |
Converts text to uppercase | =UPPER("abc") — Converts "abc" to uppercase "ABC" |
VALUE |
Converts a text argument to a number | =VALUE("123") — Converts the text "123" to the number 123 |
VALUETOTEXT |
Returns text from any specified value | =VALUETOTEXT(A1) — Converts any value to text |
From Online Toolbox (www.vba.net)