Skip to main content
Solved

How to separate out text into a field based on a specific word?

  • December 31, 2022
  • 3 replies
  • 53 views

Forum|alt.badge.img+2

Hi there! I'm new to Airtable and trying to figure out how everything works. Let's say I have a cell that as the following information I inserted below: 

Beef Onion Burgers with Pickles

Ingredients:
2 hamburger patties
1 onion, diced
2 tablespoons ketchup
4 slices pickles
2 hamburger buns

How can I separate all of the text to the left of the word  "ingredients" into one cell? I basically am trying to extract the name of the recipe into its own cell.

Best answer by TheTimeSavingCo

Try something like:

LEFT( {Full Text}, FIND( "Ingredients", {Full Text} ) - 1 )

 Which will give you this:

3 replies

TheTimeSavingCo
Forum|alt.badge.img+31

Try something like:

LEFT( {Full Text}, FIND( "Ingredients", {Full Text} ) - 1 )

 Which will give you this:


Forum|alt.badge.img+2
  • Author
  • Participating Frequently
  • January 1, 2023

Try something like:

LEFT( {Full Text}, FIND( "Ingredients", {Full Text} ) - 1 )

 Which will give you this:


Hey! That worked! The only thing is I have some spaces before the text. Is there anyway to remove those spaces?


TheTimeSavingCo
Forum|alt.badge.img+31

Hey! That worked! The only thing is I have some spaces before the text. Is there anyway to remove those spaces?


Sure, to do that put the formula above inside a `TRIM()`