0

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

2
VALUE(RIGHT(MID(textFld,FIND(textFld,'Quote'),7),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#

| improve this answer | |
  • 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 '16 at 11:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.