Software Venture Consulting

FileMaker Pro downloads & Resources
FileMaker Custom Functions
FileMaker Web Viewer Examples
FileMaker Pro & Lasso Consulting
FileMaker Books
FileMaker Articles
FileMaker Error Reference

Free Web Tools
Free FileMaker Tools

Personal Pages

Shopping Cart
Shopping Cart


Free Newsletter


Privacy Policy

FileMaker is a registered trademark of FileMaker, Inc. in the U.S. and other countries.


 FileMaker Pro Custom Functions

List  |  Show Random  |  Upload  |  Add This to Your Site

fnNameParser ( name ; type )

Rate this function:  

  Average rating: 4.0  (41 votes)
  Discuss this Custom Function

Andrew Butt, Drewsol

c. 2012 Drewsol. This CF parses specified name parts (first, last, middle) from a single name field for the flexibility of sorting and/or display. fnNameStraight now handles Spanish names, and some middle-eastern names.

Sample Input:
fnNameParser™ ( "Martin Luther King, Jr." ; "lastfirstm" )

fnNameParser™ ( "Martin Luther King, Jr." ; "initials" )

fnNameStraight ( "Fransisco de la Hoya" ; "lastfirst" )

fnNameParser™ ( "Andrew Smith-Jones" ; "last" )
Sample Output:
King, Martin L.


de la Hoya, Fransisco


 Then copy & paste into FileMaker Advanced's Edit Custom Function window.


c. 2012 Drewsol. This CF (procedurally) parses specified name parts (first, last, middle) from a single name field for the flexibility of sorting and/or display. fnNameStraight now handles Spanish names, and some middle-eastern names.

Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

This is my Custom Function and I want to edit it


5 most recent comments | Show all 13 comments

I added a fix that keeps hyphenated names intact.

Drew Wesley, Los Angeles, CA
October 08, 2013 4:28pm

How does this function know that "de la Hoya" is the last name?

I import a spreadsheet that contains a field, FullName that includes some records in which the last two words in FullName are the last name so this function would be helpful but I'm curious to understand how it works.

For example, assume FullName = John Van Heusen. The last name is "Van Heusen."

Scott C, Saluda, North Carolina
September 14, 2015 6:32am

Good BUT why you throw away the . (points) of First name(s) ?

or did I miss on something, is the type parameter a single one, of several?

I see no functionality to retain the points...


P.H.J. Cuypers

should become

Cuypers, P.H.J.

leaving out the points (is NOT done in any library or documentation environment)

Your function is greatly needed, but please react...or I have to continue trying to write my own one...

Thank you

Tjebbe van Tijen, Amsterdam
February 11, 2016 10:16am

Looked into your function a bit more...

I have added the . (point) as something to retain

that helped a bit, but still it does what seems to be a typical FPM flaw

P.H.J. Cuypers

with the parameter LastFirstM

becomes: Cuypers, P.H.J

indeed the point behind the J in the original has gone

also I noticed that you may live in the USA without people having names like

me Tjebbe Willem van Tijen

you rfuncion makes this of it

Tijen, Tjebbe W.

Can NOT be used...

so maybe I have been to optimistic one needs many, many rules to handle names (I have been an academic librarin for decades... so I go back to my own attempt...

though of course I appreciate your effort...

Tjebbe van Tijen, Amsterdam
February 11, 2016 10:44am

Hi Tjebbe van Tijen,

I didn't get notified of your post until I checked randomly (I changed my email a year ago). Let me know if you still need help.

Drew Wesley, Los Angeles, CA
March 19, 2016 6:18pm

Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:

Your Name:
characters left. If you paste in more than 1500 characters, it will be truncated. Discuss the function - advertisements and other useless posts will be deleted.
Answer 1 + 1 =
Search for Custom Functions:

Custom Functions Widget
Download the Custom Function Dashboard Widget for OS X
Keep all the latest Custom Functions right at your fingertips!

Newest Custom Functions:

1. HexUUIDToNum_cf (_uuid)
  (Sat, Jun 16, 1:55pm)
2. httpResponseCode ( responseHeaders )
  (Tue, Jun 12, 10:40pm)
3. FindDuplicateCharacters ( string )
  (Fri, Jun 08, 5:01pm)
4. FieldRepetitionLast ( field ; maxRepetition )
  (Wed, Jun 06, 6:05pm)
5. CountModifiedRecords ( NameTimestampField ; StartTimestamp ; EndTimestamp )
  (Mon, May 28, 8:23am)
6. JSONArrayLength ( JSONArrayStr )
  (Fri, May 25, 7:46am)
7. interpolation (y1; y2; y3; x1; x2; x3; x1y1; x2y1; x1y2; x2y2; rnd)
  (Sat, May 19, 3:55am)
8. @JSONFormatElements ( json )
  (Tue, May 15, 3:31am)

RSS Feed of Custom Functions