Microsoft Excel Tutorials

Excel - Text Functions

Excel - Text Functions: Complete Guide with Syntax and Examples

Text Functions in Excel

Excel text functions are essential tools for manipulating and analyzing text strings in spreadsheets. These functions help users clean, format, extract, and combine text efficiently. This guide covers the most popular and widely used text functions in Excel with practical examples, syntax, and use cases for data cleaning, reporting, and transformation.

1. CONCATENATE / CONCAT Function

Purpose:

Combines multiple text strings into one.

Syntax:

=CONCATENATE(text1, text2, ...)
=CONCAT(text1, text2, ...)

Example:

=CONCATENATE(A1, " ", B1)

Or in newer Excel versions:

=CONCAT(A1, " ", B1)
2. TEXTJOIN Function

Purpose:

Joins text strings using a delimiter between them, optionally ignoring empty cells.

Syntax:

=TEXTJOIN(delimiter, ignore_empty, text1, text2, ...)

Example:

=TEXTJOIN(", ", TRUE, A1, B1, C1)

3. LEFT Function

Purpose:

Extracts a specified number of characters from the start (left) of a text string.

Syntax:

=LEFT(text, num_chars)

Example:

=LEFT(A1, 3)

This extracts the first 3 characters from cell A1.

4. RIGHT Function

Purpose:

Extracts a specified number of characters from the end (right) of a text string.

Syntax:

=RIGHT(text, num_chars)

Example:

=RIGHT(A2, 3)

5. MID Function

Purpose:

Extracts text from the middle of a string given a starting position and length.

Syntax:

=MID(text, start_num, num_chars)

Example:
=MID(A2, 6, 4)

This starts at the 2nd character and returns 4 characters.

6. LEN Function

Purpose:

Returns the number of characters in a text string (including spaces).

Syntax:

=LEN(text)
Example:
=LEN(A1)

7. FIND Function

Purpose:

Returns the position of one text string within another (case-sensitive).

Syntax:

=FIND(find_text, within_text, [start_num])

Example:

=FIND("a", A1)


8. SEARCH Function

Purpose:

Similar to FIND but not case-sensitive.

Syntax:

=SEARCH(find_text, within_text, [start_num])

Example:

=SEARCH("excel", A1)
9. UPPER Function

Purpose:

Converts all letters in a text string to uppercase.

Syntax:

=UPPER(text)

Example:

=UPPER(A1)

10. LOWER Function

Purpose:

Converts all letters in a text string to lowercase.

Syntax:

=LOWER(text)

Example:

=LOWER(A1)

11. PROPER Function

Purpose:

Capitalizes the first letter of each word in a text string.

Syntax:

=PROPER(text)

Example:

=PROPER(A1)

12. TRIM Function

Purpose:

Removes extra spaces from text, leaving only single spaces between words.

Syntax:

=TRIM(text)

Example:

=TRIM(A1)

13. SUBSTITUTE Function

Purpose:

Replaces occurrences of a specific text within a string with new text.

Syntax:

=SUBSTITUTE(text, old_text, new_text, [instance_num])

Example:

=SUBSTITUTE(A1, "old", "new")

14. REPLACE Function

Purpose:

Replaces part of a text string with a different text based on position.

Syntax:

=REPLACE(old_text, start_num, num_chars, new_text)

Example:

=REPLACE(A1, 2, 3, "XYZ")

15. VALUE Function

Purpose:

Converts text that appears in a recognized number format into a numeric value.

Syntax:

=VALUE(text)

Example:

=VALUE(A1)

16. TEXT Function

Purpose:

Converts numbers to text in a specified number format.

Syntax:

=TEXT(value, format_text)

Example:

=TEXT(A1, "0.00")

17. EXACT Function

Purpose:

Checks if two text strings are exactly the same (case-sensitive).

Syntax:

=EXACT(text1, text2)

Example:

=EXACT(A1, B1)

Summary Table of Excel Text Functions

FunctionPurpose
CONCAT / CONCATENATEJoins text strings
TEXTJOINJoins text with a delimiter
LEFTExtracts characters from the left
RIGHTExtracts characters from the right
MIDExtracts text from the middle
LENCounts characters
FINDFinds position of text (case-sensitive)
SEARCHFinds position of text (non-case-sensitive)
UPPERConverts text to uppercase
LOWERConverts text to lowercase
PROPERCapitalizes first letter of each word
TRIMRemoves extra spaces
SUBSTITUTEReplaces specific text
REPLACEReplaces text by position
VALUEConverts text to number
TEXTFormats numbers as text
EXACTCompares text strings

Excel text functions are invaluable for cleaning, transforming, and manipulating text data in spreadsheets. Whether you need to combine names, format text, extract substrings, or clean data, these functions provide a powerful toolkit for efficient data processing in Excel.

By mastering these functions, you can automate text-related tasks, enhance reporting quality, and handle large datasets effectively in Excel for both personal and professional use.

Beginner 5 Hours
Excel - Text Functions: Complete Guide with Syntax and Examples

Text Functions in Excel

Excel text functions are essential tools for manipulating and analyzing text strings in spreadsheets. These functions help users clean, format, extract, and combine text efficiently. This guide covers the most popular and widely used text functions in Excel with practical examples, syntax, and use cases for data cleaning, reporting, and transformation.

1. CONCATENATE / CONCAT Function

Purpose:

Combines multiple text strings into one.

Syntax:

=CONCATENATE(text1, text2, ...)
=CONCAT(text1, text2, ...)

Example:

=CONCATENATE(A1, " ", B1)

Or in newer Excel versions:

=CONCAT(A1, " ", B1)
2. TEXTJOIN Function

Purpose:

Joins text strings using a delimiter between them, optionally ignoring empty cells.

Syntax:

=TEXTJOIN(delimiter, ignore_empty, text1, text2, ...)

Example:

=TEXTJOIN(", ", TRUE, A1, B1, C1)

3. LEFT Function

Purpose:

Extracts a specified number of characters from the start (left) of a text string.

Syntax:

=LEFT(text, num_chars)

Example:

=LEFT(A1, 3)

This extracts the first 3 characters from cell A1.

4. RIGHT Function

Purpose:

Extracts a specified number of characters from the end (right) of a text string.

Syntax:

=RIGHT(text, num_chars)

Example:

=RIGHT(A2, 3)

5. MID Function

Purpose:

Extracts text from the middle of a string given a starting position and length.

Syntax:

=MID(text, start_num, num_chars)

Example:
=MID(A2, 6, 4)

This starts at the 2nd character and returns 4 characters.

6. LEN Function

Purpose:

Returns the number of characters in a text string (including spaces).

Syntax:

=LEN(text)
Example:
=LEN(A1)

7. FIND Function

Purpose:

Returns the position of one text string within another (case-sensitive).

Syntax:

=FIND(find_text, within_text, [start_num])

Example:

=FIND("a", A1)


8. SEARCH Function

Purpose:

Similar to FIND but not case-sensitive.

Syntax:

=SEARCH(find_text, within_text, [start_num])

Example:

=SEARCH("excel", A1)
9. UPPER Function

Purpose:

Converts all letters in a text string to uppercase.

Syntax:

=UPPER(text)

Example:

=UPPER(A1)

10. LOWER Function

Purpose:

Converts all letters in a text string to lowercase.

Syntax:

=LOWER(text)

Example:

=LOWER(A1)

11. PROPER Function

Purpose:

Capitalizes the first letter of each word in a text string.

Syntax:

=PROPER(text)

Example:

=PROPER(A1)

12. TRIM Function

Purpose:

Removes extra spaces from text, leaving only single spaces between words.

Syntax:

=TRIM(text)

Example:

=TRIM(A1)

13. SUBSTITUTE Function

Purpose:

Replaces occurrences of a specific text within a string with new text.

Syntax:

=SUBSTITUTE(text, old_text, new_text, [instance_num])

Example:

=SUBSTITUTE(A1, "old", "new")

14. REPLACE Function

Purpose:

Replaces part of a text string with a different text based on position.

Syntax:

=REPLACE(old_text, start_num, num_chars, new_text)

Example:

=REPLACE(A1, 2, 3, "XYZ")

15. VALUE Function

Purpose:

Converts text that appears in a recognized number format into a numeric value.

Syntax:

=VALUE(text)

Example:

=VALUE(A1)

16. TEXT Function

Purpose:

Converts numbers to text in a specified number format.

Syntax:

=TEXT(value, format_text)

Example:

=TEXT(A1, "0.00")

17. EXACT Function

Purpose:

Checks if two text strings are exactly the same (case-sensitive).

Syntax:

=EXACT(text1, text2)

Example:

=EXACT(A1, B1)

Summary Table of Excel Text Functions

FunctionPurpose
CONCAT / CONCATENATEJoins text strings
TEXTJOINJoins text with a delimiter
LEFTExtracts characters from the left
RIGHTExtracts characters from the right
MIDExtracts text from the middle
LENCounts characters
FINDFinds position of text (case-sensitive)
SEARCHFinds position of text (non-case-sensitive)
UPPERConverts text to uppercase
LOWERConverts text to lowercase
PROPERCapitalizes first letter of each word
TRIMRemoves extra spaces
SUBSTITUTEReplaces specific text
REPLACEReplaces text by position
VALUEConverts text to number
TEXTFormats numbers as text
EXACTCompares text strings

Excel text functions are invaluable for cleaning, transforming, and manipulating text data in spreadsheets. Whether you need to combine names, format text, extract substrings, or clean data, these functions provide a powerful toolkit for efficient data processing in Excel.

By mastering these functions, you can automate text-related tasks, enhance reporting quality, and handle large datasets effectively in Excel for both personal and professional use.

Related Tutorials

Frequently Asked Questions for Microsoft Excel

Go to View β†’ Freeze Panes to keep a row or column visible while scrolling.

Select data β†’ Click Insert β†’ Chart β†’ Choose a chart type (bar, line, pie, etc.).

=IF(A1>10, "High", "Low") returns "High" if A1 is greater than 10; otherwise, it returns "Low".

Relative (A1): Changes when copied.

Absolute ($A$1): Remains fixed when copied.

Select data β†’ Click Insert β†’ PivotTable β†’ Choose where to place it.

VLOOKUP: Searches vertically in columns.

HLOOKUP: Searches horizontally in rows.

VLOOKUP only searches left to right.
INDEX-MATCH is more flexible and allows searches in any direction.

Click File β†’ Save As, choose a location, enter a filename, and select a format (e.g., .xlsx, .csv).

Select column β†’ Click Data β†’ Text to Columns β†’ Choose delimiter (e.g., comma, space).

Use =SUM(A1:A5) to add values in the range A1 to A5.

Use =COUNTIF(A1:A10, ">50") to count numbers greater than 50 in A1:A10.

Select data β†’ Click Data β†’ Remove Duplicates.

Count numbers: =COUNT(A1:A10)

Count non-empty cells: =COUNTA(A1:A10)

Select cells β†’ Click Conditional Formatting in the Home tab β†’ Choose a rule (e.g., highlight values greater than 50).

#DIV/0! β†’ Division by zero error.
#VALUE! β†’ Invalid data type in formula.
#REF! β†’ Cell reference is missing or deleted.

Click the Pivot Table β†’ Click Refresh under the PivotTable Analyze tab.

Select a cell β†’ Data β†’ Data Validation β†’ Set rules (e.g., allow only numbers or dropdown lists).

Ctrl + C β†’ Copy
Ctrl + V β†’ Paste
Ctrl + Z β†’ Undo
Ctrl + Shift + L β†’ Apply/Remove filter
Ctrl + T β†’ Convert data to a table

Click Review β†’ Protect Sheet, set a password, and select allowed actions.

Excel is a spreadsheet software used for data analysis, calculations, graphing, and automation.

Check for typos in the formula.
Ensure cells referenced contain valid data.
Remove extra spaces in text values.

It searches for a value in the first column of a range and returns a value from another column.

Example: =VLOOKUP(101, A2:C10, 2, FALSE) looks up 101 in column A and returns the corresponding value from column 2.

Use =A1 & " " & B1 or =CONCATENATE(A1, " ", B1).

line

Copyrights © 2024 letsupdateskills All rights reserved