ArcGIS Desktop

  • Documentation
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Changing the case of text field values

This task will convert the following three strings: example text, EXAMPLE TEXT, or eXAMPLE tEXT to Example Text.

  1. Right-click the layer or table you want to edit and open its table.
  2. Add a new text field to store the new string values.

    If you are editing, stop the current edit session. Click Table Options and click Add Field. Name the field, set the type to Text, then specify a length.

  3. Right-click the field heading for the field you just added and click Field Calculator.
  4. Choose Python as your scripting language.
  5. Paste the following code into the text box on the dialog box:
    ' '.join([i.capitalize() for i in !FieldName!.split(' ')])
    
  6. Click OK.

Related topics

  • Fundamentals of field calculations
  • Making simple field calculations
  • Calculating area, length, and other geometric properties
  • Calculate Field examples

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2018 Esri. | Privacy | Legal