• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Microsoft Excel Tips and Tricks - Computergaga

  • Home
  • Excel Online Courses
  • Excel Functions List
  • Free Downloads
  • Blog
  • Tutorials
  • About
Home / Formulas / Use the MID and FIND Functions to Extract Text

Use the MID and FIND Functions to Extract Text

This post looks at using a couple of text functions together in Excel. The MID and FIND functions are used to extract text from a cell starting from a specified delimiter.

The example below shows a list of five films, each with the year they came out. We want to extract the year from the text and enter it into a different cell. We can then use the year in filters, sorts and PivotTables.

List of films with year of release

The MID function is used to extract a specified number of characters from a text string. However, it needs a starting character. With these films, the starting position varies between each cell. So, MID will need some help.

The FIND function is used to return the starting position of a character. Because the year is enclosed in brackets, the FIND function can be used to find the opening bracket of each cell and it give its position to the MID function as an index number.

The formula entered in cell B2 is shown below.

=MID(A2,FIND("(",A2)+1,4)

The +1 is used so that the MID function starts from the character after the opening bracket.

MID and FIND functions in Excel extracting text

Excel has many useful text functions. Notably, the LEFT (beginning) and RIGHT (end) functions are also used to extract text from a cell. The FIND function can also be used with those functions to assist with irregular strings.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Posts

  • Excel SWITCH Function – Nested IF Function Alternative
  • Sum Formulas Only in Excel
  • How to Calculate Age in Excel
  • Custom Sort in Excel
  • Case Sensitive Lookup with XLOOKUP in Excel
Advanced Excel Success book

Footer

Contact

[email protected]

LinkedIn Twitter YouTube

Useful Links

  • Home
  • Excel Online Courses
  • Tutorials
  • Sitemap
  • Privacy Policy
  • Jobs by Jooble

Course Topics

  • Blog
  • Charts
  • Courses
  • Dashboards
  • Downloads
  • Excel Tips
  • Formulas
  • Mail Merge
  • Office
  • PivotTables
  • Power BI
  • Power Pivot
  • Power Query
  • VBA

Join Our Mailing List

© Copyright 2009 Computergaga · All Rights Reserved ·