I'm trying to write a formula to get the number value from a string. The issue is that the text field varies, see examples below: Example 1: Quote 1 Example 2: Quote 2 copy Example 3: Quote 10 Example 4: copy of copy of Quote 1 of Copy 1

I only need to get the number that follows the word "Quote" if the text only contains the word "Quote". If the text contains the word "Quote" and "Copy", then it should display as 0


1 Answer 1

  • FIND locates the string 'Quote'
  • MID extracts the string 'Quote n'
  • RIGHT extracts the digit n as a string
  • VALUE converts to a number

If n is more than a single digit, then replace the '7' above with an expression that finds the end of the quote#

  • Thank you! I did figure it out, here's what I used: IF( CONTAINS(Field-name , "Copy"),0, (VALUE(TRIM( SUBSTITUTE( Field-name ,"Quote ", '')))))
    – F_Aug
    Sep 2, 2016 at 11:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .