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

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Making field calculations

Performing field calculations is an easy way to batch update many records at once in your table. The Field Calculator works on string, number, and date fields and automatically calculates selected records if the layer or table has a selection set present.

There are several tips for working with the field calculator which include the following:

  • You can make calculations without being in an editing session; however, in that case, there is no way to undo the results.
  • If you are working with the attribute table of a geodatabase feature class that participates in a geodatabase topology, geometric network, or a relationship class, the Field Calculator command is unavailable when you are not in an edit session.
  • Use double quotes when calculating strings.
  • When calculating a date field, any Python or VBScript datetime function can be used. Optionally, a number sign (#) can be used to denote a date in the same way that double quotation marks (") are used to denote a string. The number sign is not locale aware and can only work properly with U.S. English date structures. For other locales, use DateSerial() or another locale-specific function.
  • A warning message will appear when performing a calculation on a text field if truncation occurs because the field length is too small to hold the calculated values. Truncated values are flagged with an asterisk so you can easily find and fix them if necessary.

  1. Start an edit session.
  2. Right-click the layer or table you want to edit and open its table.
  3. Right-click the field heading for which you want to make a calculation and click Field Calculator.

    You can press CTRL+SHIFT+F as a shortcut to opening the Field Calculator.

  4. Use the Fields list and Functions to build a calculation expression. You can also edit the expression in the text area or type a value for the field.

    If you do not see your all of your fields listed, check your field visibility settings. Any fields that have been turned off for the layer or table you are working with are not listed in the Field Calculator. Field visibility is set on the Fields tab of the Layer Properties or Table Properties dialog box or from the Table window.

  5. Click OK.
Note:

To avoid seeing the warning message when you attempt to calculate values outside an edit session, you can check the Don't warn me again box on the message. You can turn on the warning message again from the Tables tab of the Customize > ArcMap Options dialog box.

Related topics

  • Fundamentals of field calculations
  • Calculating area, length, and other geometric properties
  • Changing the case of text field values
  • 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 © 2019 Esri. | Privacy | Legal