Go Back

Excel MID Function

We can use the Excel MID function to extract given characters from the middle of a text string. While this might seem challenging to some people, this post provides a clear guide on how extract the middle characters of a supplied text string using the excel MID function.

Figure 1: Finding md characters in a text string

Syntax of the formula

=MID (text, start_number, num_chars)


  • Text- refers to the text string we want to extract from.
  • Start_num- refers to the location of the first character to extract.
  • Num_chars– refers to the number of characters to extract.

Understanding the Excel MID function

As already stated, the Excel MID function is necessary if we are to extract characters from a given text string. This function works by;

  • It returns the number of characters which you have specified from the text string.
  • It starts from the “start_num” and goes through to “start_num + num_chars”
  • Used when we want to extract text from inside a text string, based on a given location and length.
  • To find the location if we don’t know, we can use the FIND or SEARCH functions to locate the “start_num”.


Figure 2: Using Excel MID function to find mid characters in a text string

Step 1: Prepare the data sheet with columns for “text string”, “start”, “characters” and “result”.

Step 2: In cell E2, enter the formula; i.e. =MID (B2,C2,D2)

Step 3: Press Enter

Step 4: Copy the formula across the other cells

Instant Connection to an Expert through our Excelchat Service

Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. If you want to save hours of research and frustration, try our live Excelchat service! Our Excel Experts are available 24/7 to answer any Excel question you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.

Did this post not answer your question? Get a solution from connecting with the expert.

Another blog reader asked this question today on Excelchat:
Here are some problems that our users have asked and received explanations on

Can you re edit this formula for me =IFERROR(IF(LEN(MID("RHS",1,FIND("RHS",B4,1)))=1,LEFT(B4,3),MID("RHS",1,FIND("RHS",B4,1))),MID("LHS",1,FIND("LHS",B4,1)))
Solved by S. L. in 24 mins
This is regarding tab TrueUp AddProd. I need help with listing values for column S Mid Term Fee. For example: -If Column R = Azure then Mid Term Fee on column S = 0.00 AND -If Column R = Mid Term Core, Mid Term Tier 2, and Mid Term Tier 1 = a VLOOKUP type rule Look at the Agreement Number in column A on TrueUp AddProd Tab Look for the same Agreement Number in Column A on Agreement Levels tab. They should match. Then take the corresponding Mid Term Core or Mid Term Tier 2 or 1 value on columns L through N of Agreement levels tab and times it by The Extended Amount K column on TrueUp AddProd tab.
Solved by K. H. in 29 mins
I am trying to combine if statements if true then if this or this or this is true (if true) =IF(SEARCH("($",MID(T5,1,O5))>0 (then if either of these are true) IF(SEARCH("CASH",MID(T5,1,O5))>0,1 IF(SEARCH("PYMT",MID(T5,1,O5))>0,1 IF(SEARCH("PAYMENT",MID(T5,1,O5))>0,1
Solved by F. W. in 19 mins

Leave a Comment