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.

Featured Replies

Hi,

I have a field where I have first name and last combined but a comma in between them like Smith,John. I have over 70,000 names. So I can't manually separate these first name & last name. Is there a way I can separate these first name & last name? Any help would be greatly appreciated!

Edited by Guest
The Topic: <a href="http://fmforums.com/forum/showtopic.php?tid/202928">Manipulating field data</a> was moved from <a href="http://fmforums.com/forum/showforum.php?fid/34">Value Lists</a> to <a href="http://fmforums.com/forum/showforum.php?fid/31">Calcul

Create two field name_last and name_first.

Then do the following:

Show All Records

Click into field name_last

Replace field contents [ name_last; GetValue ( Substitute ( YourCurrentNameField; ","; ¶ ); 1 ) ]

Click into field name_first

Replace field contents [ name_first; GetValue ( Substitute ( YourCurrentNameField; ","; ¶ ); 2 ) ]

Hi John,

I'm I misreading this need?

Why use the Replace, these would be new calculation fields, and you would be leaving the FullName field intact..

Lee

Perhaps I misunderstood the needs here. Yes she can create a calc but under normal circumstances, the first and last names should really be broken out to their own separate fields anyway. Just my cents of course. :o

  • Author

Hi John,

I tried this and I got 0 value in both first and last name fields.

Here are two calculations that I got from comment.

Calc for First Name

Right ( FullName ; Length ( FullName ) - Position ( FullName ; "," ; 1 ; 1 ) )

Calc for Last Name

Left ( FullName ; Position ( FullName ; "," ; 1 ; 1 ) - 1 )

Note, the FullName field is your name where the data is now.

HTH

Lee

  • Author

Thanks Lee. It worked!

Oops, I posted the same formula John did.

Edited by Guest
It should work - make sure result is of type text, not number.

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.