Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Excel Tutorial
  • Excel Formulas
  • Excel Shortcut Keys
  • Data Analysis in Excel
  • Formatting in Excel
  • Excel Workbooks
  • Statistical Functions
  • Data Visualization in Excel
  • Pivot Tables in Excel
  • MS Excel Quiz
  • Excel Interview Questions
  • Advance Excel
Open In App
Next Article:
Excel LEFT, RIGHT, MID, LEN, and FIND Functions
Next article icon

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

Last Updated : 12 Apr, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

Mastering Excel functions like LEFT, RIGHT, MID, LEN, and FIND is essential for anyone looking to manipulate and analyze text data effectively. These functions allow you to extract specific parts of text, measure text length, and find the position of characters within a string, making it easier to clean and organize data.

In this guide, we will break down how to use each of these functions, including examples of how to apply them in real-world scenarios. By the end of this article, you'll have a solid understanding of how to use the Excel LEFT, RIGHT, MID, LEN, and FIND functions to streamline your data processing.

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

Here are the steps to use the LEFT function in Excel to extract a specified number of characters from the beginning of a text string.

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

Here are the steps to use the RIGHT function in Excel to extract a specified number of characters from the end of a text string.

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

Here are the steps to use the MID function in Excel to extract a specific number of characters from a text string, starting at any position you choose.

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

Here are the steps to use the LEN function in Excel to count the number of characters in a text string, including spaces.

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

Here are the steps to use the FIND function in Excel to locate the position of a specific character or substring within a text string.

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

Now that you're familiar with how to use the Excel LEFT, RIGHT, MID, LEN, and FIND functions, you can leverage these tools to manipulate and extract text data with ease. Whether you're working with long strings of data, cleaning up lists, or performing text analysis, these functions can greatly improve your efficiency. By mastering these essential Excel functions, you'll be able to manage text-based data more effectively and perform complex data tasks with greater accuracy.


Next Article
Excel LEFT, RIGHT, MID, LEN, and FIND Functions

I

iheifeanyi
Improve
Article Tags :
  • Excel
  • Excel-functions
  • ExcelGuide

Similar Reads

    VBA Find Function in Excel
    In an Excel sheet subset of cells represents the VBA Range which can be single cells or multiple cells. The find function will help to modify our search within its Range object. A specific value in the given range of cells is to search with the help of the Find function. Excel VBA provides different
    5 min read
    apropos() and find() Functions in R?
    In this article, we will be discussing the aprops() and the find() functions with these working examples in the R programming language. Functions definitions:apropos() function:  This function returns a character vector giving the names of objects in the search list matching what.find() function: Th
    2 min read
    Using MONTH and EOMONTH functions in Excel
    In this easy-to-follow guide, we'll explore the Excel MONTH and EOMONTH functions. These functions are super handy for working with dates. We'll show you how to use them to figure out which month a date belongs to, get the first and last day of a month, and more. Whether you're new to Excel or an ex
    13 min read
    How to Insert a Function in Excel?
    In MS Excel formula is an expression that help to calculate the value of a cell and in Microsoft Excel has many inbuilt in functions that we can use in our formula. Now if you want to insert a function in Excel or want to see all the functions by category, then in this series of MS Excel tutorial gu
    4 min read
    Normdist() Function in Excel
    The NORMDIST Function is one of Excel's Statistical functions. For a given mean and standard deviation, it will yield the normal distribution. That is, for a given set of parameters, it will compute the normal probability density function or the cumulative normal distribution function. In this artic
    3 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences