Open In App

Excel String Functions – LEFT, RIGHT, MID, LEN, and FIND

Last Updated: 02 Jul, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Share
Report
News Follow

Access to powerful string functions such “Excel string functions like LEFT, RIGHT, MID, LEN, and FIND. These Excel text function are essential for anyone looking to master data analysis and text processing in Excel. Whether you need to extract specific parts of a string, determine the length of text, or locate a substring within a cell, these functions offer the flexibility and precision you need.

In this post, we’ll explore how to use the LEFT function in Excel to capture the beginning of a text, the RIGHT function in Excel to grab the end of a string, the MID function in Excel for extracting text from the middle, the LEN function in Excel to measure text length, and the FIND function in Excel to pinpoint the position of a substring. Understanding these excel function in list will significantly enhance your ability to handle and transform text data efficiently, making your workflow smoother and more productive.

String-Functions-in-Excel

String Function in Excel

String Function in Excel

String functions in Excel are essential tools for anyone working with text data and are also known as Excel text function. These functions allow you to manipulate and analyze text strings efficiently, making data management much easier. For instance, the LEFT function in Excel lets you extract a specified number of characters from the beginning of a string, while the RIGHT function in Excel helps you retrieve characters from the end. These functions, among others, are invaluable for data analysis and processing, enabling you to handle large datasets with ease. Understanding and utilizing these string functions with examples can significantly boost your productivity and accuracy in Excel.

LEFT function in Excel

The LEFT function returns a given text from the left of our text string based on the number of characters specified.

Syntax:

LEFT(text, [num_chars])

Parameters:

  • Text: The text we want to extract from.  
  • Num_chars (Optional): The number of characters you want to extract. Default num_chars is 1 and the number must be a positive number that is greater than zero.  

How to use LEFT Function Excel

Step 1: Format your data.

Now if you want to get the first “Geeks” from “Geeksforgeeks” in B2. Let us follow the next step.

String Function in Excel

Format your data.

Step 2: Enter Formula

We will enter =LEFT(B2,5) in the B3 cell. Here we want Excel to extract the first 5 characters from the left side of our text in B2.

String Function in Excel

Enter =LEFT(B2,5)

Step 3: This will return “Geeks”.

String Function in Excel

This will return “Geeks”

RIGHT Function in Excel

The RIGHT function returns a given text from the left of our text string based on the number of characters specified.

Syntax:

RIGHT(text, [num_chars])

Parameters:

  • Text: The text we want to extract from.  
  • Num_chars (Optional): The number of characters you want to extract. Default num_chars is 1 and the number must be a positive number that is greater than zero.  

How to use RIGHT Function in Excel

Step 1: Format your data.

Now if you want to get the last geeks from “Geeksforgeeks” in B2. Let us follow the next step.

String Function in Excel

Format your data

Step 2: Enter Formula

We will enter =RIGHT(B2,5) in the B3 cell. Here we want Excel to extract the last 5 characters from the right side of our text in B2.

String Function in Excel

Enter Formula

Step 3: This will return “geeks”.

String Function in Excel

Geeks Returns

MID function in Excel

The MID function returns the text from any middle part of our text string based on the starting position and number of characters specified.

Syntax:

MID(text, start_num, num_chars)

Parameters:

  • Text: The text we want to extract from.  
  • start_num: The starting number of the first character from the text we want to extract.
  • Num_chars: The number of characters you want to extract.

How to use MID Function in Excel

Step 1: Format your data.

Now if you want to get the character “for” which is located in the middle of our text “Geeksforgeeks” in B2. Let us follow the next step.

String Function in Excel

Format your Data

Step 2: Enter Formula

We will enter =MID(B2,5,3) in the B3 cell. Here we want Excel to extract the characters located in the middle of our text in B2.

String Function in Excel

Enter Formula

Step 3: This will return “for”

String Function in Excel

This will return “for”

LEN Function in Excel

The LEN function returns the number of characters in the text strings.

Syntax:

LEN(text)

Parameters:

  • Text: The text we want to know the length

How to use LEN Function in Excel

Step 1: Format your data.

Now if you want to know how many characters are in the text “Geeksforgeeks”. Let us follow the next step.

String Function in Excel

Format your data.

Step 2: Enter Formula

We will enter =LEN(B2) in the B3 cell. Excel will count how many characters are in the text.

String Function in Excel

Enter Formula

Step 3: This will return 13

String Function in Excel

13 Returns

FIND Function in Excel

The FIND function returns the position of a given text within a text.

Syntax:

FIND(find_text, within_text, [start_num])

Parameters:

  • Find_text: The text we want to find.  
  • Within_text: The text containing our find_text.
  • Start_num (Optional): The starting position of our find_text. Default is 1.  

How to use FIND Function in Excel

Step 1: Format your data

Now if you want to find “for” in geeksforgeeks in B2. Let us follow the next step.

String Function in Excel

Format your Data

Step 2: Enter Formula

We will enter =FIND(“for”,B2) in B3 cell. Here we want Excel to find “for” in our text in B2.

String Function in Excel

Enter Formula

Step 3: This will return 6 because “for” is located at character number 6 in our text

find2

6 Returns

Conclusion

In conclusion, mastering Excel string functions is crucial for efficient data manipulation and text processing. These Excel Text functions, along with the find and replace function in Excel, allow you to handle text data with precision and ease. By using the LEFT function in Excel, you can extract the beginning of a text string, while the RIGHT function in Excel helps you capture the end. With practical string functions in Excel with examples, you can enhance your data analysis skills and streamline your workflow. Embrace these powerful tools to become more proficient in Excel and elevate your data management capabilities.

Excel String Functions – FAQs

What are left, right, mid function in Excel?

LEFT Function

  • Purpose: Extracts a specified number of characters from the beginning (left side) of a text string.

RIGHT Function

  • Purpose: Extracts a specified number of characters from the end (right side) of a text string.

MID Function

  • Purpose: Extracts a specified number of characters from the middle of a text string, starting at a given position.

What is the right formula with Len and find in Excel?

The right formula for LEN and FIND in Excel is:

“=RIGHT(A1, LEN(A1) – FIND(” “, A1))”

What is the function of Len and mid in Excel?

LEN Function: Returns the number of characters in a text string.

MID Function: Extracts a specified number of characters from a text string, starting at a given position.

How to use mid and find formula in Excel?

The MID and FIND functions can be combined to extract a specific portion of a text string dynamically based on the position of a character or substring.

For example : “=MID(A1, FIND(” “, A1) + 1, LEN(A1) – FIND(” “, A1))”

How to use left and find formula together in Excel?

The LEFT and FIND functions can be used together to extract text from the beginning of a string up to a specific character or substring.

Example: “=LEFT(A1, FIND(” “, A1) – 1)”



News
Improve
Discuss
Do you want to advertise with us?Click here to know more

Excel String Functions - LEFT, RIGHT, MID, LEN, and FIND

article_img
Access to powerful string functions such "Excel string functions like LEFT, RIGHT, MID, LEN, and FIND. These Excel text function are essential for anyone looking to master data analysis and text processing in Excel. Whether you need to extract specific parts of a string, determine the length of text, or locate a substring within a cell, these functions offer the flexibility and precision you need. In this post, we'll explore how to use the LEFT function in Excel to capture the beginning of a text, the RIGHT function in Excel to grab the end of a string, the MID function in Excel for extracting text from the middle, the LEN function in Excel to measure text length, and the FIND function in Excel to pinpoint the position of a substring. Understanding these excel function in list will significantly enhance your ability to handle and transform text data efficiently, making your workflow smoother and more productive.String Function in ExcelTable of ContentString Function in ExcelLEFT function in ExcelHow to use LEFT Function ExcelRIGHT Function in ExcelHow to use RIGHT Function in ExcelMID function in ExcelHow to use MID Function in ExcelLEN Function in ExcelHow to use LEN Function in E
Read More

Excel MID Function

If you use programming languages, like Python, you must have used a function called string slicing, which extracts a part of the string and can directly print it, or store a result. The same functionality can be achieved in Excel when we use Excel's MID function. The MID function can return a part of the string provided to it. Let us see the workings of this function. Excel MID Function Syntax This function can be used to slice a given string and return only a part of that string. It considers a starting point, which will be the starting index of the string, from which we want to print. It will consist of the string that we want to slice. It can be a string provided in double quotes(" "), or it can be a reference to a cell on which slicing is to be done. It will also consist of the length of the characters, which will indicate how many characters we want to print taking reference from the starting index. Syntax:=MID(Text to be sliced, starting index, length of the string) Arguments:The text to be Sliced is the Original Text The Starting Index is the position of the First character that you want to extract. The length of the String is the number of characters to extract. Excel MID F
Read More

How to use the LEN function in Google Sheets

article_img
The LEN function in Google Sheets is a simple but powerful tool used to calculate the number of characters in a string of text. Whether you're working with text strings, numbers, or a mix of both, LEN helps you determine the length of any given cell content. This is particularly useful for tasks like data validation, cleaning up entries, or organizing information.In this guide, we'll walk you through how the LEN function works, its syntax, and how to use it effectively in Google Sheets. We’ll also show you how to count occurrences of a specific character, making your text analysis tasks even easier.Google Sheets LEN FunctionThe LEN function in Google Sheets is used to count the number of characters in a cell, including spaces, numbers, and special symbols. It's a simple yet powerful tool for analyzing text length, managing data quality, or troubleshooting issues like unexpected extra spaces in your spreadsheet.How It WorksThe LEN function works by taking a cell reference or text as input and returning the total number of characters within it. This includes all visible and invisible characters, such as letters, numbers, spaces, and punctuation. It's commonly used in text processing,
Read More

How To Deal With A Mid-Career Crisis?

article_img
When you've been working for a while and start feeling unsure or unhappy about your job, it's called a mid-career crisis. It's normal to feel this way sometimes, but it can be tough to deal with. This phase often occurs in the middle stages of one's career when feelings of dissatisfaction, uncertainty, or lack of progress arise. Whether you've hit a deadlock in your current job or are questioning your career path altogether, experiencing a mid-career crisis is more common than you might think. How To Deal With A Mid-Career CrisisResearch suggests that nearly 40% of professionals aged 35 to 54 have faced a mid-career crisis at some point. This article will help you deal with this tough time by giving you useful advice and ideas. We'll help you recognize when you're going through a mid-career crisis and show you ways to fix it. How To Deal With A Mid-Career Crisis Midlife Career Crisis MeaningMidlife Career Crisis SymptomsMethods To Deal With Mid-Career Crisis:You'll learn how to handle this difficult time and come out even better. So, if you're feeling confused or unhappy with your job, keep reading to learn how to take charge again and feel satisfied in your career. Midlife Career
Read More

10 Best HR Management Systems for Mid-Sized Companies

article_img
HR plays an important role in the entire employment cycle of an employee. To help HR work efficiently, there is an HR Management System, specifically HRIS for midsize companies. These are the software solutions that assist HR professionals with day-to-day management tasks. HR’s duties include managing employee data, maintaining attendance records, processing employee payments, analyzing performance, talent management, hiring, and many more. 10 Best HR Management Systems for Mid-Sized CompaniesSelecting the software that meets all your needs can be quite a difficult task. But to help you with this, we are here with the 10 Best HR Management Systems for Mid-sized Companies, which include HRIS for midsize companies, along with their features, pros, cons, pricing models, etc. List of 10 Best HR Management Systems for Mid-Sized Companies PaycorDeelRipplingBamboo HRZohoDayforceUKG ProPaycomADPHibob10 Best HR Management Systems for Mid-Sized CompaniesThese systems, including HRIS for midsize companies, are chosen because they are affordable, easy to use, and can scale with your business as it grows. We'll discuss their features, advantages, and how they can help streamline your HR tasks e
Read More

How to use MID Function in Google Sheets

article_img
Handling textual data in spreadsheets often involves tasks like splitting information, extracting specific elements, or organizing text for analysis. The MID function in Google Sheets simplifies these processes by allowing users to extract specific parts of a text string. Whether you’re working with email addresses, product IDs, or file names, the MID function offers a versatile solution for precise text manipulation and data organization. This guide provides practical examples and step-by-step instructions for using the MID function, along with advanced combinations for more complex scenarios.Google Sheets MID Function The MID function in Google Sheets helps you extract a specific section of text from a string based on the starting position and the number of characters you want. It’s ideal for splitting structured text, such as product codes, serial numbers, or names.How It WorksThe MID function extracts characters from a text string starting at a specified position and for a defined length.Input the text: Provide the cell reference or text string to work with.Specify the start position: Determine where to begin extracting characters.Define the length: Indicate how many characters
Read More

Editing Excel Macros in Excel

article_img
Excel Macro is a set of actions that can be recorded, saved, used multiple times. This feature saves us a lot of time when dealing with repetitive tasks and huge data sets. We can always make changes to an existing Macro in Excel. There are two ways to record and run macros: Excel Commands Excel Visual Basic for Applications(VBA).1. Copying a Macro Code We can reuse the existing macro code while creating new Macros. For example, if you have existing macros created using the record function, we can reuse the code to write new macros. To open the code follow the below steps: Select Tools --> Macros --> Visual Basic Editor. Copy code from the existing macros(use Command + C) and paste(use Command + V) in the new macro2. Renaming a Macro Follow the below steps to rename a Macro in Excel: Select Tools --> Macros --> Visual Basic Editor. Select name on the left plane.Edit the name.3. Deleting a Macro Follow the below steps to delete a macro in Excel: Select Tools --> Macros --> Macros... Select the macro to be deleted. Click on the minus(-) symbol at the bottom.Select yes to delete the macro.
Read More

Best Microsoft Excel High-Paying Jobs with Excel Skills in 2024

article_img
Are you ready to unlock a world of opportunities with Microsoft Excel? In today’s data-driven job market, mastering Excel is essential for launching a successful career, whether you're a fresher or an experienced professional. In this article, we will cover the high-paying Excel jobs available in 2024, including crucial roles like data analyst, business analyst, and many more. We'll explore the qualifications needed for these positions, along with salary estimations to help you understand your earning potential. Whether you’re looking for Excel jobs for freshers or seasoned professionals, we’ll also dive into options for Excel freelancing jobs and work-from-home jobs in Excel. Equip yourself with the knowledge to excel in your career and take the first step toward a lucrative future!Best Microsoft Excel High-Paying Jobs with Excel Skills in 2024Table of ContentWhy choose a career in ExcelWhy Excel Skills Are Essential for Your CareerEssential Excel Skills Required to Boost Your Resume Best Microsoft Excel High-Paying JobsFinancial AnalystsData AnalystAdministrative Assistant Accountants Project ManagersManagement ConsultantRetail Store ManagersBusiness Analyst Market Research A
Read More

Excel VLOOKUP Function - Excel Guide for Beginners

article_img
How to do Vlookup in Excel - Quick StepsPrepare Your DataEnter the VLOOKUP Formula >>Press EnterUse a Cell Reference for Flexibility Copy the Formula for Multiple RowsThe VLOOKUP function is one of the most widely used tools in Excel for looking up and retrieving data from a table. Whether you’re working with a single sheet or multiple workbooks, VLOOKUP allows you to search for a value in one column and return a related value from another. If you're new to Excel or still getting the hang of formulas, this guide is for you. We will cover everything from the basics of how VLOOKUP works to practical examples that show how to search data across sheets, troubleshoot common issues, and master the VLOOKUP formula for any task.Excel VLOOKUP FunctionWhat is the VLOOKUP Function in ExcelThe term VLOOKUP stands for Vertical Lookup. It is designed to search for a specific value in the first column of a table (lookup column) and retrieve corresponding data from a different column in the same row.Syntax of VLOOKUP FormulaVLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])Arguments:1. lookup_value: The value you want to search for (e.g., a specific ID, name, or product code).
Read More

AI in Excel: Top 20 Excel AI Tools in 2025 (Free/Paid)

article_img
The integration of AI in Excel is transforming the way professionals manage, analyze, and visualize data. Whether you're handling large datasets, performing financial analysis, or automating repetitive tasks, AI-powered tools can significantly improve efficiency and accuracy. In 2025, advanced Excel AI tools are making complex tasks easier by offering features like data cleaning, predictive analytics, smart automation, and AI-driven insights.In this guide, we’ve gathered a list of the top 20 Excel AI tools for 2025 that are reshaping how users interact with Excel.Table of ContentBest AI Tool in Excel: Top Picks for 2025Top 10 Free Excel AI Tools in 2025Top 10 Excel AI ToolsAI in Excel: OverviewIn Excel, an AI tool (Artificial Intelligence tool) refers to an add-in or extension that leverages artificial intelligence to enhance your spreadsheet experience. These tools can automate tasks, improve data analysis, and generally make you more productive.Excel has always been a powerful tool for data analysis, but with the integration of AI tools, it has transformed into a smarter, more intuitive platform.Best AI Tool in Excel: Top Picks for 2025Explore the below AI tools designed for auto
Read More
three90RightbarBannerImg