Excel Text Functions: Complete Tutorial with Practical Examples (2025)

Published: December 17, 2024 - 3 min read

Ashley Lenz

Working with text data in Excel requires precision and knowledge of the right tools. Text functions help you manipulate, combine, and format text data to meet your business needs. Whether you’re cleaning customer data, standardizing report formats, or creating dynamic text strings, mastering Excel’s text functions is essential for efficient data management.

Converting Numbers to Text with the TEXT Function

The TEXT function transforms numbers into formatted text strings, giving you control over how numerical data appears in your spreadsheets.

Basic Syntax

TEXT(value, format_code)

Here are practical examples of the TEXT function:

Scenario

Formula

Result

Format number with commas

=TEXT(1234567, “#,###”)

1,234,567

Show 2 decimal places

=TEXT(123.4567, “#.00”)

123.46

Format as currency

=TEXT(1234.56, “$#,##0.00”)

$1,234.56

Date Formatting

The TEXT function excels at customizing date formats:

Scenario

Formula

Result

Full date

=TEXT(TODAY(), “mmmm d, yyyy”)

December 17, 2025

Short date

=TEXT(TODAY(), “mm/dd/yy”)

12/17/24

Custom format

=TEXT(TODAY(), “ddd, mmm d”)

Tue, Dec 17

 

Manipulating Text with Essential String Functions

Extracting Parts of Text

LEFT and RIGHT Functions

Extract characters from the beginning or end of a text string:

Function

Formula

Example

Result

LEFT

=LEFT(text, num_chars)

=LEFT(“Customer ID”, 4)

Cust

RIGHT

=RIGHT(text, num_chars)

=RIGHT(“Order #12345”, 5)

12345

MID Function

Extract text from the middle of a string:

=MID(text, start_position, num_chars)

Example

Formula

Result

Extract middle digits

=MID(“ABC123DEF”, 4, 3)

123

Get month from date

=MID(“2025-01-15”, 6, 2)

01

Changing Text Case and Format

Case Conversion Functions

Function

Formula

Example

Result

UPPER

=UPPER(text)

=UPPER(“hello world”)

HELLO WORLD

LOWER

=LOWER(text)

=LOWER(“HELLO WORLD”)

hello world

PROPER

=PROPER(text)

=PROPER(“john doe”)

John Doe

TRIM Function

Remove extra spaces:

Example

Formula

Result

Coefficient Excel Google Sheets Connectors
Try the Free Spreadsheet Extension Over 500,000 Pros Are Raving About

Stop exporting data manually. Sync data from your business systems into Google Sheets or Excel with Coefficient and set it on a refresh schedule.

Get Started

Remove spaces

=TRIM(” Hello World “)

Hello World

Combining Text Using CONCATENATE and &

Basic Text Combination

Both CONCATENATE and the & operator join text strings:

Method

Formula

Result

CONCATENATE

=CONCATENATE(“Hello”, ” “, “World”)

Hello World

& Operator

=”Hello” & ” ” & “World”

Hello World

Dynamic Text Strings

Create complex combinations with cell references:

=A1 & ” – ” & B1 & ” (” & TEXT(C1, “$#,##0.00”) & “)”

Example result: “Order 12345 – John Smith ($1,234.56)”

Finding and Replacing Text

FIND Function

Locate specific characters:

Scenario

Formula

Result

Find @ in email

=FIND(“@”, “user@domain.com”)

5

Find space

=FIND(” “, “Hello World”)

6

SUBSTITUTE Function

Replace text elements:

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

Example

Formula

Result

Replace all

=SUBSTITUTE(“Hello Hello”, “Hello”, “Hi”)

Hi Hi

Replace specific

=SUBSTITUTE(“Hello Hello”, “Hello”, “Hi”, 1)

Hi Hello

Creating Complex Text Formulas

Real-World Examples

  1. Extract domain from email:

=MID(A1, FIND(“@”, A1) + 1, LEN(A1) – FIND(“@”, A1))

  1. Format phone numbers:

=TEXT(LEFT(A1,3),”(000)”) & ” ” & MID(A1,4,3) & “-” & RIGHT(A1,4)

  1. Create standardized names:

=PROPER(TRIM(CONCATENATE(A1, ” “, B1)))

Next Steps

Now that you understand Excel’s text functions, start implementing them in your spreadsheets to automate text manipulation tasks. Remember to combine functions for more complex operations and always validate your results.

Ready to take your Excel data management to the next level? Get started with Coefficient to automate your data workflows and keep your spreadsheets synchronized with your business systems in real-time.

Sync Live Data into Your Spreadsheet

Connect Google Sheets or Excel to your business systems, import your data, and set it on a refresh schedule.

Try the Spreadsheet Automation Tool Over 500,000 Professionals are Raving About

Tired of spending endless hours manually pushing and pulling data into Google Sheets? Say goodbye to repetitive tasks and hello to efficiency with Coefficient, the leading spreadsheet automation tool trusted by over 350,000 professionals worldwide.

Sync data from your CRM, database, ads platforms, and more into Google Sheets in just a few clicks. Set it on a refresh schedule. And, use AI to write formulas and SQL, or build charts and pivots.

Ashley Lenz Product Researcher @ Coefficient
As a product researcher at Coefficient, Ashley taps into the power of data to create intuitive solutions that save users valuable time. By working closely with users, Ashley helps to uncover key insights that shape product features, enabling teams to streamline workflows and boost productivity. Her passion for data-driven research and optimizing user experiences fuels her work, ensuring the product delivers maximum efficiency and value.
500,000+ happy users
Wait, there's more!
Connect any system to Google Sheets in just seconds.
Get Started Free

Trusted By Over 50,000 Companies