Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Calculation Needed to Remove Text from Field

Featured Replies

I have a field that has 2-3 characters followed by a hypen that I need to remove. The result needs to be the remaining text. The problem for me is because of the varying number of characters.

For ex: V1-John Smith

I want returned as: John Smith

and V25-Bill Jones returned as: Bill Jones

Thanks in advance for any help.

Try

Right ( text ; Length ( text ) - Position ( text ; "-" ; 1 ; 1 ) )

  • Author

BEAUTIFUL!

THANK YOU VERY MUCH!

Here's the same thing written slightly differently:

Let ( 

  [ name = your::field ; 

    dash = Position ( name ; "-" ; 1 ; 1 ) ; 

    chars = Length ( name ) - dash ] ;

  Right ( name ; chars )

 )

Man, I just can't post fast enough today!

I know what you mean, I posted the same calculation as comment, only to discover he had beat me by a few seconds. Oh well, I probably stole it from him in the first place. LOL

Lee

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.