Excel LEFT Function: Extract Text Characters (With Formula Examples)

Published: December 6, 2024 - 3 min read

Frank Ferris

The LEFT function in Excel is a powerful tool for extracting characters from the beginning of text strings. Whether you need to parse names, format product codes, or clean up data, understanding how to use LEFT effectively can save hours of manual work. Let’s explore how to use this function through practical examples and common scenarios.

Extract Characters from the Left Side of Excel Cells

The basic syntax of the LEFT function is straightforward, but its applications are diverse. Let’s start with the fundamentals and build toward more complex uses.

Basic LEFT Function Syntax

LEFT(text, [num_chars])

Where:

  • text: The string you want to extract characters from
  • num_chars: The number of characters to extract (optional, defaults to 1)

Step 1: Extract a specific number of characters

  1. Open your Excel spreadsheet
  2. Select the cell where you want the result
  3. Enter the LEFT function with your parameters
  4. Press Enter to see the result

Example:

Original Text

Formula

Result

HelloWorld

=LEFT(A1,5)

Hello

Product123

=LEFT(A2,7)

Product

Step 2: Use cell references

  1. Replace hard-coded text with cell references
  2. Adjust the number of characters as needed
  3. the formula to adjacent cells if necessary

Example:

Cell A1

Cell B1 Formula

Result

ABC12345

=LEFT(A1,3)

ABC

Remove Characters from the Beginning of Text

Sometimes you need to remove rather than extract characters. Here’s how to accomplish this using LEFT with other functions.

Step 1: Determine text length

  1. Use the LEN function to find total character count
  2. Subtract the number of characters you want to remove
  3. Combine with LEFT function

Example:

Original Text

Formula

Result

PREFIXDATA

=RIGHT(A1,LEN(A1)-6)

DATA

Extract Text Before a Specific Character

One of the most practical applications is extracting text before a particular character or delimiter.

Step 1: Combine LEFT with FIND

  1. Use FIND to locate the delimiter
  2. Nest this within LEFT function
  3. Add error handling with IFERROR

Example:

=IFERROR(LEFT(A1,FIND(“-“,A1)-1),”No delimiter found”)

Practical application:

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

Original Text

Formula

Result

First-Last

=LEFT(A1,FIND(“-“,A1)-1)

First

John-Doe

=LEFT(A2,FIND(“-“,A2)-1)

John

Combine LEFT with Other Excel Functions

The true power of LEFT emerges when combined with other Excel functions. Let’s explore some common combinations.

Step 1: Extract first names

  1. Use SEARCH to find the space
  2. Nest within LEFT function
  3. Apply to a range of cells

Example:

=LEFT(A1,SEARCH(” “,A1)-1)

Step 2: Format product codes

  1. Identify the pattern in your codes
  2. Use LEFT to extract the relevant portion
  3. Combine with other functions as needed

Example:

Product Code

Formula

Result

ABC-123-XY

=LEFT(A1,3)

ABC

Putting It All Together

The LEFT function is an essential tool for text manipulation in Excel. By combining it with other functions and applying it systematically, you can automate complex text extraction tasks and maintain data consistency across your spreadsheets.

Ready to take your Excel data management to the next level? Try Coefficient to automatically sync your data from 50+ business systems directly into your spreadsheets. Get started with Coefficient today and transform how you work with data in Excel.

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.

Frank Ferris Sr. Manager, Product Specialists
Frank is the spreadsheet ninja you never knew existed. Frank's focus throughout his career has been all about growing businesses quickly through both strategy and effective operations. His advanced skillset and understanding of how to leverage data analytics to automate processes and make better and faster decisions make him the unicorn any team can thrive with.
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