[GIS] Changing field type of Excel attribute table for a Join

arcgis-desktopattribute-joinsexcel

I have a string field type of shapefile already in ArcMap. I need to import an excel file in and join with the shapefile. The only problem is the field type of the shapefile is a String and the field type for the excel file is a Double.

The excel field is all numbers, but the shapefile field is mostly numbers and a few letters mixed in, I think thats why it came out as a string.

I know you can't add a field or use the field calculator into a table exported from excel, I'm currently using it as a .csv.

Best Answer

In ArcGIS use the tool, Table to Table This tool allows you to format each field before you import - so that you can verify everything is correct (ex. text is text, and date as date).

I've found ArcGIS works funny with excel, and it's best to import excel into a dBase or dbf using the tool above.

I'm a little unclear about what you're trying to do, but I think you need to use the Table to Table tool to first import your excel file. Make sure you have unique IDS that are the same with your shapefile and in excel to perform your join on.

As for the field calculator, after your join export the file. Then use that new joined shapefile to add a new field to perform your calculation.

Related Question