Help

Upcoming database upgrades. to improve our reliability at 03:30 UTC on Feb. 25 / 7:30pm PT on Feb. 24. Some users may briefly experience slow load times or error messages. Learn more here

Extract part of a string between same character, "

Topic Labels: Formulas
Solved
Jump to Solution
593 2
cancel
Showing results for 
Search instead for 
Did you mean: 

I have a field with a value "feather29sum"cxa. I need to extract the feather29sum only and ignore everything else. Can someone please help with this formula?

1 Solution

Accepted Solutions

This should work:

TRIM(LEFT(SUBSTITUTE({Field Name}, '"', REPT(" ", 25)), 50))

Breakdown, in to out:

  • The SUBSTITUTE() function replaces the quotes with blocks of 25 spaces.
  • We then grab the left-most 50 characters, which picks out the first 25 spaces, all of the text you want, and some portion of the next 25 spaces.
  • We then trim off the spaces.

See Solution in Thread

2 Replies 2

This should work:

TRIM(LEFT(SUBSTITUTE({Field Name}, '"', REPT(" ", 25)), 50))

Breakdown, in to out:

  • The SUBSTITUTE() function replaces the quotes with blocks of 25 spaces.
  • We then grab the left-most 50 characters, which picks out the first 25 spaces, all of the text you want, and some portion of the next 25 spaces.
  • We then trim off the spaces.

Thanks Justin, this is exactly what I needed.