Jump 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.

Dividing a field by a special character

Featured Replies

I want to divide this text into two seperate fields.

"Schofield Barracks/Schofield Barracks"

I've got the first part broken out using:

Left ( dept_loc; Position ( dept_loc; "/" ; 1 ; 1 ) -1)

If I reverse that, for some reason it doesn't work. Here's what I've got:

Right ( dept_loc; Position ( dept_loc; "/" ; 1 ; 1 ))

Any help would be appreciated.

Hi

the reverse of:

Left ( dept_loc; Position ( dept_loc; "/" ; 1 ; 1 ) -1)

is:

Right ( dept_loc; Position ( dept_loc; "/" ; 1 ; 1 )-1)

the "-1" is for deleting the "/" in the left and in the right functions !

  • Author

Ok, fair enough. The result of: Call Center Hub - Col Springs/Colorado Springs Hub

Using: Right ( dept_loc; Position ( dept_loc; "/" ; 1 ; 1 )-1)

is: Springs/Colorado Springs Hub

Ideas?

The Position() function counts from left.

The Right() function counts from right.

Try:

Right ( dept_loc ; Length ( dept_loc ) - Position ( dept_loc; "/" ; 1 ; 1 ) )

  • Author

Awesome! Thank you!

Hi,

of course my calc was right only if the left side and the right side have the same number of chars ! (as in your first example)

So comment gives you the correct answer!

BTW there is another way to calc the left side and the right side:

leftSide: Replace ( text ; Position ( text ; "/" ; 1 ; 1 ) ; Length ( text ) ; "" )

rightSide: Replace ( text ; 1 ; Position ( text ; "/" ; 1 ; 1 ) ; "" )

  • Author

OK, now I have another field. First and Last name seperated only by a comma and no space. I want to add a space there. (ie "Doe,John" becomes "Doe, John")

Ideas?

Thanks!

Yes... this is simpler

Substitute ( Name ; "," ; ", " )

Create an account or sign in to comment

Important Information

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

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.