Forum Discussion

wskinnermctcsp's avatar
wskinnermctcsp
Copper Contributor
Aug 19, 2022

SharePoint Calculated Column Combine First Middle Last Name without Additional Spaces

Hello, I am currently working on making columns that will be used in a document set. When a new folder is created they will have to input the names (First, Middle, Last, Suffix). The document set col...
  • kalpeshvaghela's avatar
    Aug 20, 2022

    wskinnermctcsp 

     

    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

Resources