Top 10 Excel Text Functions to Level Up Your Spreadsheet Skills

Data rarely comes into Excel perfectly formatted. More often than not, you’ll find yourself wrestling with messy text, irregular spacing, and concatenated values that need splitting. Mastering Excel text functions is the ultimate shortcut to leveling up your spreadsheet skills. Instead of manually editing hundreds of rows, these powerful formulas can automate your data cleaning in seconds.

Whether you are a beginner looking to understand the basics or an advanced user brushing up on data manipulation techniques, this comprehensive guide covers the top 10 text functions in Excel you need to know. We have included practical, real-world examples for each to help you apply them immediately to your workflow.

1. TEXTJOIN: The Smart Way to Combine Text

Introduced in Excel 2016, TEXTJOIN revolutionized how we combine strings. Unlike older functions, it allows you to specify a delimiter (like a comma or space) and can automatically ignore empty cells, saving you from awkward trailing commas.

Syntax

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

Practical Example 1: Creating a Full Address

Imagine you have address components in separate columns, but some rows are missing a “Suite/Apt” number. TEXTJOIN ignores the blanks perfectly.

A (Street) B (Apt) C (City) D (Formula) E (Result)
1 123 Main St Apt 4B New York =TEXTJOIN(", ", TRUE, A1:C1) 123 Main St, Apt 4B, New York
2 456 Elm St Boston =TEXTJOIN(", ", TRUE, A2:C2) 456 Elm St, Boston

Practical Example 2: Generating an Email List

You can quickly generate a semicolon-separated list of email addresses from a column.

A (Email) B (Formula)
1 john@example.com =TEXTJOIN(";", TRUE, A1:A3)
2 jane@example.com
3 mark@example.com
Result john@example.com;jane@example.com;mark@example.com

2. CONCAT: The Modern CONCATENATE

CONCAT is the modern replacement for the older CONCATENATE function. Its biggest advantage is the ability to select a continuous range of cells rather than selecting them one by one.

Syntax

=CONCAT(text1, [text2], ...)

Practical Example 1: Merging First and Last Names

If you don’t need a specific delimiter applied to an entire range, CONCAT is quick and easy.

A (First Name) B (Last Name) C (Formula) D (Result)
1 Sarah Connor =CONCAT(A1, " ", B1) Sarah Connor

Practical Example 2: Creating a Unique ID

Combine part numbers and region codes to create unique identifiers without any spaces.

A (Region) B (Year) C (Part Num) D (Formula) E (Result)
1 NA 2024 9982 =CONCAT(A1:C1) NA20249982

3. LEFT: Extracting from the Beginning

When you need to pull specific information starting from the beginning of a string, the LEFT function is your go-to tool. It extracts a designated number of characters from the left side of your text.

Syntax

=LEFT(text, [num_chars])

Practical Example 1: Extracting Area Codes

Extract the 3-digit area code from a standardized phone number string.

A (Phone Number) B (Formula) C (Result)
1 555-019-8372 =LEFT(A1, 3) 555

Practical Example 2: Pulling Currency Symbols

If you have a text string containing a price and currency symbol, you can isolate the symbol.

A (Price String) B (Formula) C (Result)
1 $1,250.00 =LEFT(A1, 1) $
2 €890.50 =LEFT(A2, 1)

4. RIGHT: Extracting from the End

The inverse of LEFT, the RIGHT function grabs a specific number of characters starting from the end (right side) of the text string.

Syntax

=RIGHT(text, [num_chars])

Practical Example 1: Grabbing File Extensions

If all your file extensions are exactly 3 characters long, you can easily extract them.

A (Filename) B (Formula) C (Result)
1 report_2024.pdf =RIGHT(A1, 3) pdf
2 data_export.csv =RIGHT(A2, 3) csv

Practical Example 2: Masking Credit Card Numbers

Show only the last 4 digits of a credit card or bank account number for security purposes.

A (Account Number) B (Formula) C (Result)
1 4589-1234-9876-1029 ="****-****-****-" & RIGHT(A1, 4) ****-****-****-1029

5. MID: Extracting from the Middle

When the data you need is buried in the center of a text string, the MID function is essential. You tell Excel exactly where to start looking and how many characters to return.

Syntax

=MID(text, start_num, num_chars)

Practical Example 1: Extracting Department Codes

Suppose you have an employee ID format like `EMP-HR-001` and you want the department code.

A (Employee ID) B (Formula) C (Result)
1 EMP-HR-001 =MID(A1, 5, 2) HR
2 EMP-IT-092 =MID(A2, 5, 2) IT

Practical Example 2: Pulling Date Segments

Extract the day from a text-formatted date like YYYYMMDD.

A (String Date) B (Formula) C (Result)
1 20241025 =MID(A1, 7, 2) 25

6. LEN: Counting Characters

The LEN function simply returns the total number of characters in a cell, including letters, numbers, punctuation, and spaces. It is incredibly useful for data validation and when combined with other text functions.

Syntax

=LEN(text)

Practical Example 1: Checking Data Entry Length

Validate if a submitted Zip Code has the correct 5 digits.

A (Zip Code) B (Formula) C (Result)
1 90210 =LEN(A1)=5 TRUE
2 1001 =LEN(A2)=5 FALSE

Practical Example 2: Dynamic Text Extraction (LEN + RIGHT)

Remove a prefix of variable length by subtracting from the total length.

A (Text) B (Formula) C (Result)
1 ID-123456 =RIGHT(A1, LEN(A1)-3) 123456
💡

Pro Tip for SEO Optimization

You can use LEN to ensure your Title Tags and Meta Descriptions aren’t too long. For example, ensuring your Title is under 60 characters: =IF(LEN(A2)<60, "Good", "Too Long").

8. SUBSTITUTE: Replacing Specific Text

When you want to replace a specific character or string with another, SUBSTITUTE is the fastest method. It replaces text based on the content, not the position.

Syntax

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

Practical Example 1: Removing Hyphens

Clean up phone numbers or social security numbers by removing all dashes.

A (Phone) B (Formula) C (Result)
1 555-123-4567 =SUBSTITUTE(A1, "-", "") 5551234567

Practical Example 2: Replacing the Nth Instance

Replace only the 2nd instance of a hyphen in a product code.

A (Product Code) B (Formula) C (Result)
1 PRD-ABC-99 =SUBSTITUTE(A1, "-", "_", 2) PRD-ABC_99

9. TRIM: Cleaning Up Messy Spaces

Data imported from databases or the web often contains invisible trailing or leading spaces that break lookups and formulas. TRIM removes all spaces except single spaces between words.

Syntax

=TRIM(text)

Practical Example 1: Fixing VLOOKUP Errors

If your VLOOKUP is returning #N/A because of an invisible space at the end of a name, wrap the cell in TRIM.

A (Raw Data) B (Formula) C (Result)
1 " Apple Inc " =TRIM(A1) "Apple Inc"

Practical Example 2: Standardizing Data Entry

Combine TRIM with PROPER to clean up messy user-submitted forms.

A (Input) B (Formula) C (Result)
1 jOhn dOE =PROPER(TRIM(A1)) John Doe

10. TEXT: Formatting Numbers as Text

The TEXT function converts a numeric value to text and allows you to apply a display format. This is crucial when combining numbers (like dates or currency) with text strings, otherwise Excel turns dates into their raw serial numbers.

Syntax

=TEXT(Value, format_text)

Practical Example 1: Combining Dates with Text

Avoid seeing "The date is 45220". Format the date properly.

A (Date) B (Formula) C (Result)
1 10/25/2024 ="Meeting on " & TEXT(A1, "mmmm dd, yyyy") Meeting on October 25, 2024

Practical Example 2: Formatting Currency within Text

Include properly formatted monetary values inside sentences.

A (Sales) B (Formula) C (Result)
1 15450.75 ="Total sales: " & TEXT(A1, "$#,##0.00") Total sales: $15,450.75

Conclusion

Mastering these top 10 text functions in Excel is a game changer for anyone dealing with raw, unformatted data. By combining functions like LEFT, SEARCH, and TEXTJOIN, you can create dynamic formulas that automatically clean and reorganize data, saving you hours of manual entry.

The next time you are faced with a messy spreadsheet, resist the urge to retype. Instead, reach for these text functions and let Excel do the heavy lifting for you! Keep practicing, and soon enough, complex data manipulation will become second nature. Check out more tutorials on Learn Excel and Sheets to continue elevating your spreadsheet skills.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top