HOW TO
In ArcGIS Pro, the Field Calculator tool can be used to concatenate two or more text fields to display the combined field attributes in a new field. Text and numeric fields must, in some cases, be concatenated into one field to combine the attribute values.
The steps provided in this article describe how to concatenate text and numeric fields into a new field using casting in Field Calculator, which converts all the fields to text fields.
In this example, the Name (text), Gender (text), and Student_ID (numeric) fields are concatenated into the new Top_Students_ID text field.
Note: This workflow retains the original field data type and treats it as a text field in the Python expression to enable concatenation.
Add a new text field in the attribute table to store the concatenated attributes. Refer to ArcGIS Pro: Fields view for steps to create a new text field.
Note: The field to store the concatenated attributes must be a text field. Refer to ArcGIS Blog: Concatenating field values using Calculate Field for more information. Using an existing field is possible, but the output of this process overwrites existing data in the field.
str(!Field Name!) + " " + str(!Field Name!) + " " + str(!Field Name!)
Note: The ‘str’ constructor function specifies the field data type to be string. Refer to Python Casting for more information. Remove the double quotation marks (" ") to eliminate the space if required. Do not remove the exclamation marks surrounding the field names.
In this example, the field names are Name, Gender, and Student_ID.
Get help from ArcGIS experts
Download the Esri Support App