cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to convert names to initials?

former_member279138
Participant

I have a name field that I want to show up as just initials in the report.

So

John Smith

Baba Booey

Jane Doe

Would show up as:

JS

BB

JD

Is there a formula I can run to just show the names?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

abhilash_kumar
Active Contributor
0 Kudos

HI Kurt,

Try:

(split({database field} , ' ')[1])[1]&(split({database field} , ' ')[2])[1]

-Abhilash

former_member279138
Participant
0 Kudos

The first part works but on the second part i get an error

A subscript must be between 1 and the size of the array

I probably should have mentioned that the field normally returns names in the "lastname, first name" format

former_member279138
Participant
0 Kudos

Also it's in this format

lastname,firstname

No space after the comma separating the last name and the first name so I'm looking for the first letter after the comma

abhilash_kumar
Active Contributor
0 Kudos

If the string is separated by a coma, the formula would be:

(split({database field} , ',')[1])[1]&(split({database field} , ',')[2])[1]

-Abhilash

former_member279138
Participant
0 Kudos

perfect. thank you

Answers (0)