Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Randomize/ Shuffle List in Excel
  • What-If Analysis: Scenarios and Goal Seek in Excel
  • Excel Frequency Function Example
  • How to create a Histogram in Excel
  • Error Bars in Excel

References

  • How to get address of last cell in range in Excel
  • How to get address of first cell in range in Excel
  • Count rows that contain specific values in Excel
  • How to use Excel INDIRECT Function
  • Extract data with helper column in Excel

Data Validations

  • Excel Data validation must not contain
  • How To Create Drop-down List in Excel
  • Excel Data validation no punctuation
  • Excel Data validation allow weekday only
  • Excel Data validation require unique number

How to extract text between parentheses in Excel

by

To extract text between parentheses, braces, brackets, etc. you can use a formula based on the MID function, with help from SEARCH function.

Formula

=MID(text,SEARCH("(",text)+1,SEARCH(")",
text)-SEARCH("(",text)-1)

Explanation

In the example shown, the formula in C5 is:

=MID(B5,SEARCH("(",B5)+1,SEARCH
(")",B5)-SEARCH("(",B5)-1)+0

How this formula works

The foundation of this formula is the MID function, which extracts a specific number of characters from text, starting at a specific location. To figure out where to start extracting text, we use this expression:

SEARCH("(",B5)+1

This locates the left parentheses and adds 1 to get the position of the first character inside the parentheses. To figure out how many characters to extract, we use this expression:

SEARCH(")",B5)-SEARCH("(",B5)-1

This locates the second parentheses in the text, and subtracts the position of the first parentheses (less one) to get the total number of characters that need to be extracted. With this information, MID extracts just the text inside the parentheses.

Worked Example:   Count cells that do not contain many strings in Excel

Finally, because we want a number as the final result in this particular example, we add zero to text value returned by MID:

+0

This math operation causes Excel to coerce text values to numbers. If you don’t need or want a number at the end, this step is not required.

Post navigation

Previous Post:

Put names into proper case — Manipulating NAMES in Excel

Next Post:

Create One-dimensional and Two-dimensional Array

Leave a Reply Cancel reply

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

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • How to use Excel OR Function
  • How to use Excel AND Function
  • How to use Excel XOR Function
  • How to use Excel FALSE Function
  • OR function Examples in Excel

Date Time

  • Add days exclude certain days of week in Excel
  • MONTH function: Description, Usage, Syntax, Examples and Explanation
  • Convert time to time zone in Excel
  • How to calculate Quarter of Date in Excel
  • Calculate retirement date in Excel

Grouping

  • If cell contains one of many things in Excel
  • Calculate conditional mode with criteria in Excel
  • Categorize text with keywords in Excel
  • Group arbitrary text values in Excel
  • Group times into 3 hour buckets in Excel

General

  • Excel Ribbon Quick Overview For Beginners
  • Find Most Frequently Occurring Word in Excel Worksheet
  • How to create dynamic named range with INDEX in Excel
  • How to create dynamic worksheet reference in Excel
  • Automatically fill series of cells in Excel using AutoFill
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning