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.
Combines multiple text strings into one.
=CONCATENATE(text1, text2, ...)
=CONCAT(text1, text2, ...)=CONCATENATE(A1, " ", B1)
Or in newer Excel versions:
=CONCAT(A1, " ", B1)2. TEXTJOIN Function
Joins text strings using a delimiter between them, optionally ignoring empty cells.
=TEXTJOIN(delimiter, ignore_empty, text1, text2, ...)=TEXTJOIN(", ", TRUE, A1, B1, C1)Extracts a specified number of characters from the start (left) of a text string.
=LEFT(text, num_chars)
=LEFT(A1, 3)
This extracts the first 3 characters from cell A1.
Extracts a specified number of characters from the end (right) of a text string.
=RIGHT(text, num_chars)=RIGHT(A2, 3)Extracts text from the middle of a string given a starting position and length.
=MID(text, start_num, num_chars)Example:
=MID(A2, 6, 4)This starts at the 2nd character and returns 4 characters.
Returns the number of characters in a text string (including spaces).
=LEN(text)Example:
=LEN(A1)Returns the position of one text string within another (case-sensitive).
=FIND(find_text, within_text, [start_num])
=FIND("a", A1)
Similar to FIND but not case-sensitive.
=SEARCH(find_text, within_text, [start_num])
=SEARCH("excel", A1)9. UPPER Function
Converts all letters in a text string to uppercase.
=UPPER(text)
=UPPER(A1)
Converts all letters in a text string to lowercase.
=LOWER(text)
=LOWER(A1)
Capitalizes the first letter of each word in a text string.
=PROPER(text)
=PROPER(A1)
Removes extra spaces from text, leaving only single spaces between words.
=TRIM(text)
=TRIM(A1)
Replaces occurrences of a specific text within a string with new text.
=SUBSTITUTE(text, old_text, new_text, [instance_num])
=SUBSTITUTE(A1, "old", "new")
Replaces part of a text string with a different text based on position.
=REPLACE(old_text, start_num, num_chars, new_text)
=REPLACE(A1, 2, 3, "XYZ")
Converts text that appears in a recognized number format into a numeric value.
=VALUE(text)
=VALUE(A1)
Converts numbers to text in a specified number format.
=TEXT(value, format_text)
=TEXT(A1, "0.00")
Checks if two text strings are exactly the same (case-sensitive).
=EXACT(text1, text2)
=EXACT(A1, B1)
| Function | Purpose |
|---|---|
| CONCAT / CONCATENATE | Joins text strings |
| TEXTJOIN | Joins text with a delimiter |
| LEFT | Extracts characters from the left |
| RIGHT | Extracts characters from the right |
| MID | Extracts text from the middle |
| LEN | Counts characters |
| FIND | Finds position of text (case-sensitive) |
| SEARCH | Finds position of text (non-case-sensitive) |
| UPPER | Converts text to uppercase |
| LOWER | Converts text to lowercase |
| PROPER | Capitalizes first letter of each word |
| TRIM | Removes extra spaces |
| SUBSTITUTE | Replaces specific text |
| REPLACE | Replaces text by position |
| VALUE | Converts text to number |
| TEXT | Formats numbers as text |
| EXACT | Compares 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.
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.
Select data β Click Insert β PivotTable β Choose where to place it.
VLOOKUP: Searches vertically in columns.
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)
Select cells β Click Conditional Formatting in the Home tab β Choose a rule (e.g., highlight values greater than 50).
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).
Excel is a spreadsheet software used for data analysis, calculations, graphing, and automation.
It searches for a value in the first column of a range and returns a value from another column.
Use =A1 & " " & B1 or =CONCATENATE(A1, " ", B1).
Copyrights © 2024 letsupdateskills All rights reserved