EDUCBA Logo

EDUCBA

MENUMENU
  • Explore
    • EDUCBA Pro
    • PRO Bundles
    • All Courses
    • All Specializations
  • Blog
  • Enterprise
  • Free Courses
  • All Courses
  • All Specializations
  • Log in
  • Sign Up
Home Excel Excel Resources Excel Tips Excel Text with Formula
 

Excel Text with Formula

Madhuri Thakur
Article byMadhuri Thakur

Excel Text with Formula

Excel Text Formula (Table of Content)
  • Introduction to Excel Text with Formula
  • Methods to Use Excel Text with Formula

Introduction to Excel Text with Formula

Often, we need to extract some part of the text from a cell value, and that too dynamically. This might be a case where we need to extract only the first name from the complete names of the student or only the surname from the student’s full name. Or this may happen in the case where we need the day name from a date.

 

 

By using this inbuilt function of Excel, we can extract the defined characters from the text of another cell. Functions such as MID, TEXT, LEFT, and RIGHT can extract the text from another cell.

Watch our Demo Courses and Videos

Valuation, Hadoop, Excel, Mobile Apps, Web Development & many more.

Methods to Use Excel Text with Formula

Excel Text Formula converts numbers to text in an Excel sheet; let’s look at a few methods.

Method #1 – Using the MID Function

The first step will be to decide whether to extract the text dynamically or just need a static count of characters.

How to Use Excel Text with Formula 1.1

The next step will be to insert the formula if needed to extract the static count of characters.

=MID(A2,1,SEARCH(” “,A2,1)-1)

A2 will be the location of the cell from where the text has to be extracted. 1 is the starting point from the text that has to be extracted. The search function will look up the occurrence of “Space” in the text and return the location of “Space”.

This way, the text is extracted only until the “Space”.

How to Use Excel Text with Formula 1.2

Method #2 – Using the LEFT Function

The first step will be identifying whether we need the characters from the text’s left or the cell’s right. We only need to use this function if we need the characters from the left. Now we need to use the below function of LEFT.

=LEFT(text,num_Chars)

The text will be the cell from where the text has to be extracted. Num_chars will be the character count that needs to be extracted.

How to Use Excel Text with Formula 1.3

Method #3 – Using TEXT Function

Using this function, we can convert any value to text; if we have a numeric value in a cell and need that value as TEXT, then we can use this function. First, we need to know in which format to extract the text.

Now we need to design the text formula.

=text (Text, format)

  • TEXT= the location of the cell from where the Text has to be extracted.
  • Format= is defining the format in which we need the text.

How to Use Excel Text with Formula 1.4

Method #4 – Using the RIGHT Function

This function can be used if we need to extract the text starting from the right of the cell. We need to use the below function to extract the text starting from the right of a cell.

=RIGHT(text,num_Chars)

The text will be the cell from where the text has to be extracted.

Num_chars will be the character count that needs to be extracted.

Now we need to enter this formula in the cell, and the characters from the RIGHT will be extracted.

How to Use Excel Text with Formula 1.5

Illustrations to Extract Text Using Formula

Now, look at a few practical examples of extracting text using Excel formulas.

You can download this Excel Text with Formula Template here – Excel Text with Formula Template

Illustration #1 – Extracting Text by using MID Function

By using the MID function, we can get the desired TEXT with this formula.

Excel Text with Formula example 1.1

Illustration #2 – Extracting Text by using the Function TEXT

ETF example 1.2

Illustration #3 – Extracting the Text by using the LEFT Function

ETF example 1.3

Illustration #4 – Extracting Text by using RIGHT Function

 ETF example 1.4

Things to Remember

  • The characters extracted with the above functions’ help will be formatted as text, even if the values are extracted.
  • Using the TEXT function, we can get the dates in the desired function, but this should be remembered that the extracted dates will be TEXT and not a date to Excel. We need to use a delimiter to format the text as dates.
  • The function of LEFT and MID is the same if we extract the same count of characters as both the functions extract from the left of the cell.
  • If the character counts that need to be extracted are not stagnant, then we need to use the function of SEARCH inside the function of MID to make the MID function dynamic.

Recommended Articles

This is a guide to Excel Text with Formulas. Here we discuss How to Use Excel Text with Formulas in Excel, examples, and a downloadable Excel template. You may also look at the following articles to learn more –

  1. Formatting Text in Excel
  2. Excel Text with Formula
  3. Count Cells with Text in Excel?
  4. Compare Text in Excel
Primary Sidebar
Footer
Follow us!
  • EDUCBA FacebookEDUCBA TwitterEDUCBA LinkedINEDUCBA Instagram
  • EDUCBA YoutubeEDUCBA CourseraEDUCBA Udemy
APPS
EDUCBA Android AppEDUCBA iOS App
Blog
  • Blog
  • Free Tutorials
  • About us
  • Contact us
  • Log in
Courses
  • Enterprise Solutions
  • Free Courses
  • Explore Programs
  • All Courses
  • All in One Bundles
  • Sign up
Email
  • [email protected]

ISO 10004:2018 & ISO 9001:2015 Certified

© 2025 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

Download Excel Text with Formula Template

EDUCBA Login

Forgot Password?

EDUCBA

Download Excel Text with Formula Template

EDUCBA

डाउनलोड Excel Text with Formula Template

🚀 Limited Time Offer! - 🎁 ENROLL NOW