Forum Discussion
SharePoint Calculated Column Combine First Middle Last Name without Additional Spaces
- Aug 20, 2022
You should try below formula which will not add additional space if any field don't have value:
=CONCATENATE(TRIM(FIRST_NAME),IF(ISBLANK(TRIM(MIDDLE_NAME)),""," "),TRIM(MIDDLE_NAME),IF(ISBLANK(TRIM(LAST_NAME)),""," "),TRIM(LAST_NAME),IF(ISBLANK(TRIM(NAME_SUFF)),""," "),TRIM(NAME_SUFF))
For more function about calculation field in SharePoint visit Calculated Field Formulas
Hope it will helpful to you and if so then Please mark my response as Best Response & Like to help others in this community
You should try below formula which will not add additional space if any field don't have value:
=CONCATENATE(TRIM(FIRST_NAME),IF(ISBLANK(TRIM(MIDDLE_NAME)),""," "),TRIM(MIDDLE_NAME),IF(ISBLANK(TRIM(LAST_NAME)),""," "),TRIM(LAST_NAME),IF(ISBLANK(TRIM(NAME_SUFF)),""," "),TRIM(NAME_SUFF))
For more function about calculation field in SharePoint visit Calculated Field Formulas
Hope it will helpful to you and if so then Please mark my response as Best Response & Like to help others in this community
- wskinnermctcspAug 25, 2022Copper Contributor
Thanks kalpeshvaghela your formula works just as well. I'm marking your response as best because it is a little easier to read logically than mine.