Información para utilizar archivos de Microsoft Excel en ArcGIS
You can open Microsoft Office Excel tables directly in ArcGIS and work with them like other tabular data sources. For example, you can add them to ArcMap, preview them in ArcCatalog, and use them as inputs to geoprocessing tools.
Excel files are added to ArcMap like other data, through the Add Data dialog box. When you browse to an Excel file, you will need to choose which table you want to open. For example, if you have an Excel workbook called sales_figures.xls that contains three worksheets—Sales, Month, and Year to date—each worksheet is a separate table in ArcGIS. Any name references to cells or ranges defined in Excel are preserved in ArcGIS.
When accessed from ArcGIS, a worksheet is shown as a table with a $ at the end of its name, but a named range does not have a $. Worksheets or named ranges with names containing spaces have single quotation marks placed around the table name.
Once added to ArcMap, you can open the table from the Source view of the table of contents. However, you will not be able to edit the table or export records to an Excel format.
The following example contrasts how a multisheet document is exposed in Microsoft Excel and on the ArcMap Add Data dialog box.
- Tres hojas de cálculo tal como aparecen en la ficha Hoja en la parte inferior de la ventana de Excel
- Hojas de cálculo disponibles dentro del libro sales_figures en el cuadro de diálogo Agregar datos de ArcMap
When working with Microsoft Office Excel files, there are a few things to keep in mind:
- ArcGIS supports both Excel 2003 and earlier .xls files and Excel 2007 .xlsx files. One advantage of Excel 2007 is that it allows much larger worksheets (1,048,576 rows by 16,384 columns) than you can have in Excel 2003 (65,536 rows by 256 columns).
- If you have an .xlsx file you want to use in ArcGIS but do not have Excel 2007 installed, you will need to install the 2007 Office System Driver. It can be downloaded here from the Microsoft Download Center. If you have Microsoft Excel 2010 or no version of Microsoft Excel installed, you must install the 2007 driver before you can use either .xls or .xlsx files.
- Excel tables are read-only in ArcGIS as well as read-only in Excel when you have a workbook open in ArcGIS.
- Field names are derived from the first row in each column of the worksheet. You can view the properties, set aliases for the field names, and set field visibility on the Fields tab of the table's Properties dialog box.
- Excel does not enforce field types for values during data entry like standard databases do. Therefore, the field type specified in Excel is not used in determining the field type exposed in ArcGIS. Instead, field type in ArcGIS is determined by a scan of the values in the first eight rows for that field. If the scan finds mixed data types in a single field, that field will be returned as a string field, and the values will be converted to strings.
- Numeric fields are converted to the Double data type in ArcGIS.
- Excel tables behave like other tables that don't have an ObjectID field. This means you will be unable to edit, perform relates, or make selections on the map. (Note: ArcMap does not convert any column from Excel into an ArcGIS ObjectID field. For example, a numeric column—OID—or an autonumber field will be a Double in ArcMap.)
- Excel file support in ArcGIS uses Microsoft OLE DB Provider for Jet 4.0 and its supporting Excel Indexed Sequential Access Method (ISAM) driver. For more information on the Microsoft OLE DB Provider for Jet 4.0 and its supporting Excel ISAM, see Microsoft KB article 326548.
- You cannot create new Excel files or export records to an Excel file in ArcGIS.
- You can still open an Excel file through an OLE DB database connection.
If you have previously specified on the File Types tab of the Customize > ArcCatalog Options dialog box that ArcCatalog show you .xls files, you'll need to remove this file type to be able to access Excel files directly.