HOW TO

Handle text fields with embedded numbers using Arcade

Last Published: November 18, 2025

Summary

In some cases, attribute fields in ArcGIS Pro contain values that are a combination of text and numbers, such as "0.15 ACRES". Although they represent numeric data, these fields are stored as text, preventing proper symbology and numerical analysis. Since field types can't be changed after creation, Arcade expressions can be used to extract and convert the numeric portion for improved data management and calculation.

Procedure

To address the issue of mixed text and numeric values, for example, "0.15 ACRES", follow these steps to extract and convert the numeric portion using field calculation in ArcGIS Pro:

  1. Open the Attribute Table of the relevant layer.
  2. Locate the field containing the mixed values, for example, Frontage_o.
  3. Right-click the field header and choose Calculate Field from the context menu.

  1. Configure the field calculation Using Arcade:
    1. In the Calculate Field window, enter a name for the new field under Field Name.
      • For example: Area_Acres
    2. Under Field Type, choose the appropriate numeric type.
      • In this case, select Float (32-bit floating point) since the values contain decimals.
    3. Set Expression Type to Arcade, as you'll use an Arcade expression to extract numeric values.
    4. Click the filter icon in the Helpers section and select Text to display only text-related Arcade functions, as shown in the next image.

  1. Apply the Split() Function to Extract Numeric Values:
    1. In the Helpers section, under the filtered Text functions, select Split(), as shown in the image above.
    2. In the Expression box, use the Split() function to separate the number from the text in the Frontage_o field.

  1. Select the Field Containing Text Values for the Split() Function:
    1. After selecting the Split() function, click inside the parentheses.
    2. Choose the field, Frontage_o, that contains the text values to convert to numeric type, as shown in the preceding image.

  1. Finalize the Arcade expression to extract the numeric portion:
Note:
The Split() function divides a text value based on a specified character (in this case, a space ' ') and returns an array of values. Arrays are indexed starting from 0 in Arcade.

Complete the expression as follows:

Split($feature.Frontage_o, ' ')[0]
    • Split($feature.Frontage_o, ' ') — Splits the text into two parts at the space, for example, "0.15 ACRES" becomes ["0.15", "ACRES"].
    • [0] — Specifies which part of the split array to return. Here, [0] returns the first element (the numeric value), while [1] would return the second element (the text).

Important: Ensure there is a space between the quotes ' ' — it defines the character used for splitting.

  1. Click Apply or OK to populate the Area_Acres field with numeric values extracted from the mixed text field, as shown in the image below.

Article ID: 000037290

Software:
  • ArcGIS Pro

Get support with AI

Resolve your issue quickly with the Esri Support AI Chatbot.

Start chatting now

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Start chatting now

Go to download options