Select to view content in your preferred language

Working with Excel Data in ArcGIS Pro

20901
10
05-26-2017 11:49 AM
Suzanne-Boden
Esri Regular Contributor
10 10 20.9K

Microsoft Excel is a popular format for storing and analyzing tabular data. While you can't edit Excel data in ArcGIS Pro (worksheets are read-only), it’s easy to view Excel worksheets and do things like

ArcGIS Pro supports XLSX files (Excel 2007) and XLS files (Excel 2003 and earlier). Before working with Excel data in ArcGIS Pro, there are a few things you need to be aware of. Here are some common things to check. 

  • Note: If an Excel file is password-protected, you will not be able to access it in ArcGIS Pro.

Column Names

ArcGIS Pro converts the first row of Excel worksheet data to field names, so the first row in your Excel worksheet should contain column names. If the first row contains other content, modify the worksheet so that the first row contains column names.

  • Depending on your organization’s data requirements, you may want to make a copy of the worksheet and modify the copy.

Column names must be 64 characters or less.

ArcGIS Pro field names can contain only letters, numbers, and underscores (no special characters). Best practice is for Excel column names to begin with a letter, especially if you want to join the Excel table to another table.

  • Note: Column names that begin with a number will have an underscore appended in front of the number in ArcGIS Pro. Spaces and hyphens in Excel column names display as underscores in ArcGIS Pro.

Excel field names in ArcGIS Pro

Column Data Types 

ArcGIS Pro scans the rows in each column to determine the data type. If there are mixed data types within a column, the ArcGIS Pro field data type will be text.

  • Tip: Before opening the worksheet in ArcGIS Pro, in Excel, select the column, then use the Format Cells dialog box to apply the same data type to all the cells.

If your Excel column stores numeric data with decimals, in ArcGIS Pro the field will have a data type of double-precision floating-point number (AKA double).

ArcGIS Pro assigns the data type for a column containing only numbers to be numeric. This makes sense, but suppose you have a column of ZIP Codes?

Items such as ZIP Codes, U.S. FIPS codes, NAICS, and SIC codes should be treated as text, since mathematical operations don’t apply to this data. In the table below, the Area field has been assigned the long integer data type. In fact, this field contains ZIP Codes.

Excel table in ArcGIS Pro fields view

If the data type assigned to a field is not desirable for your data, you can join the Excel table to another (editable) table in ArcGIS Pro, then add a new field of the desired data type to the joined table and calculate its values to be the data from the source Excel column.

How to Access an Excel worksheet in ArcGIS Pro

  • Start ArcGIS Pro, open a project, and insert a map if necessary.
  • In the Catalog pane, navigate to the folder containing the Excel file.
  • Click the plus sign next to the Excel filename to expand it and display one or more worksheets. A dollar sign symbol ($) displays at the end of worksheet names.
  • Drag the worksheet into the map area.

The worksheet displays in the Contents pane as a standalone table (this means it’s a nonspatial table that contains only tabular data).

ArcGIS Pro Contents pane that includes an Excel worksheet

To open the Excel table, in the Contents pane, right-click the table and click Open.

You can sort fields, turn fields off and on, assign field aliases, and export the data to a geodatabase table or CSV, DBF, or TXT file.

If you edit the data in Excel while the table is open in ArcGIS Pro, you’ll need to close ArcGIS Pro and restart it in order to see the updated Excel data.


Want more on this topic?

For more information about working with Excel files in ArcGIS Pro, see this help topic.

For hands-on practice with ArcGIS Pro, check out these training options:

10 Comments
JoshWhite
Honored Contributor

I have been trying to do this for the last hour.  Pro is painfully slow at this.  It says that Pro looks at the first row to determine field names but that is not the behavior I am seeing.  I am also only able to see one of the worksheets in my Excel file and cannot open any others.  The other worksheets do still have spaces in them but so did the first one originally.  All I see are Field1, Field2 and so on.  My original intention was to join the Excel table to a feature class and then either use a definition query or symobology to display the data the way I wanted.  The source table is relatively large at 20000 records but I know Pro can handle more than that.  

Suzanne-Boden
Esri Regular Contributor

Hmm, sorry to hear you're having issues. Josh. What version of ArcGIS Pro and what version of Excel are you using?

JoshWhite
Honored Contributor

Pro 2.3.2 and Excel 2010.  I should note though that I've since heard that Pro 2.4 should address some of the issues with Excel that I'm experiencing.

RobinDiSalvo1
Frequent Contributor

Can you use the same procedures with ArcGIS Online?  is there a big difference between ArcGIS Online and Pro?

Suzanne-Boden
Esri Regular Contributor

Hi Robin, yes, there's a different procedure to add an Excel file to ArcGIS Online (which is different than ArcGIS Pro)--though it's good to follow the recommendations about column names and data types above. To add an Excel file, you must have an ArcGIS Online organizational account (if you don't have an organizational account, you can add a CSV file to the ArcGIS Online Map Viewer--click Add Layer > Add Layer from File and browse to the CSV file).

To add an Excel file to your My Content page in an ArcGIS Online organization, click Add Item and browse to the file. Instructions are in this help topic: https://doc.arcgis.com/en/arcgis-online/manage-data/add-items.htm

RobinDiSalvo1
Frequent Contributor

Thank you!

NaomiBegg2
Deactivated User

Hi Suzanne Boden‌ Pro 2.4 seems to be broken when it comes to adding Excel files.  It worked fine in the older version.  Even if I make the project in an older version, as soon as I open the project in 2.4 the table instantly breaks.  It may be worth mentioning that we use Office 365.

Suzanne-Boden
Esri Regular Contributor

Hi Naomi, you may need to install a Microsoft driver. Instructions are in the comments to this post: https://community.esri.com/thread/224675-arcgis-pro-not-recognising-worksheets-in-a-spreadsheet.

NaomiBegg2
Deactivated User

Thanks Suzanne

It turned out that Admin command prompt then AccessDatabaseEngine.exe /quiet sorted our issues.

Suzanne-Boden
Esri Regular Contributor

Good news! Glad you got it sorted.

Contributors
About the Author
Suzanne is a Maryland native who enjoys writing about Esri technology, GIS professional development, and other topics. She is the Training Marketing Manager with Esri Training Services in Redlands, California.