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.

Text Parsing

Featured Replies

Hi,

I have a text field that contains size and color data separated by a "-" dash.

i.e.

record (1):( red - XL

record (2): crystal blue - small

record (3): black/light blue - large

record (4): mediterranean blue/ speckled black (45) - extra small

.. and so on

I am looking to parse everything to the left and to the right of the "-" dash into two other fields (color) and (size). I am having trouble accounting for the variability of the location of the dash in building my calculation. Within this field, there is one and only one occurrence of the "-" dash.

Any help pointing me in the right direction would be appreciated!

Try:

Color = Left ( text ; Position ( text ; "-" ; 1 ; 1 ) - 1 )

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

If the dash is surrounded by spaces (as in your example), then adjust the formula or use Trim() on the result.

  • Author

Comment,

Worked perfectly. Many thanks -much gratitude.

  • 7 months later...

How about pulling the number after the first dash and before the second on this example:

09-[color:red]789-ROBB-5

In my limited knowledge I got this calculation but it doesnt account for the number in question being either 3 or 4 digits long.

Middle (CaseNumber_pkid ; 4 ; 4)

Try

MiddleWords( Substitute (CaseNumber_pkid; "-"; " "); 2; 1 )

See also:

http://fmforums.com/forum/showpost.php?post/289685/

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.