HOW TO
In ArcGIS Pro, a prefix can be added to values in a field. For example, a state prefix can be added to a field containing the names of cities in the attribute table, as shown in the image below. This article provides the workflows.
Add a user-defined prefix using the Calculate Field tool in the attribute table
Note: This option is only applicable when adding prefixes to a text field type.
"<the prefix>" + " " + !<field name>!
"<the prefix>" + " " + $feature.<field name>
Note: Omit " " in the expression to remove the space separator between the prefix and the field values.
The image below shows the ‘SC’ (South California) state prefix added to the City field values.
Add a prefix using an existing field from the attribute table
If the attribute table has an existing field to be used for the prefix, concatenate the two fields with a space separator. Refer to ArcGIS Pro: Code samples–strings for more information.
Get help from ArcGIS experts
Download the Esri Support App