EXCEL – EXTRACT TEXT BETWEEN QUOTES

To extract text between quotes we can use a number of different techniques. In this article we will explore two function:

  • TEXTAFTER
  • TEXTBEFORE

In column F we have some sentences, the color in quotes, in column H we have extracted the color.

  • Enter the formula in cell H7
  • =TEXTBEFORE(TEXTAFTER(F7;”‘”);”‘”)

The TEXTAFTER extracts the data after the first quote

  • In the first case above, this gives us yellow’
  • The output from this is passed to TEXTBEFORE, which returns the text before the second qoute.
  • This gives us yellow

Discover more from Excel tutorials

Subscribe to get the latest posts sent to your email.

Leave a comment

I’m Henrik

Welcome to Excel tutorials made easy. This site is full of easy to follow tutorials