Building a spreadsheet for location data

Written by Kyle Martin. Edited by Alan Zheng. Reviewed by Austin Mason and Aaron Young.

Introduction

This recipe will provide some basic principles and best practices for creating a spreadsheet which will easily translate into a .csv file for import into the mapping application of your choice.

Ingredients

A spreadsheet application (e.g. Microsoft Excel, Google Sheets, Airtable.com, etc.)

How to do it

  1. Decide what information you want your map to communicate. This determination will be invaluable as you gather your data, and will also eventually translate into the columns/fields on your spreadsheet which will be used to classify your data. To help you with this task, it would be beneficial to consider the pre-mapping questions available in the “Digital Mapping Questionnaire” recipe.

  2. Open your spreadsheet application and create a new project.

  3. Name your columns/fields (located along the top of your spreadsheet) according to the specific attributes of your data which you are tracking and wish to communicate. In Microsoft Excel and Google Sheets, these labels should go in row 1. In other applications such as Airtable, columns/fields are named directly, leaving row 1 open for your data.

Best Practice Tips:

  • When naming your columns and fields, avoid spaces by using naming conventions such as camelCase or snake_case.

  • Try to limit your labels to 9 characters or fewer. Some mapping applications into which you may end up importing your data have a tendency to truncate values beyond 9 characters, which can result in the appearance of duplicate values.

  • Avoid the use of special characters (e.g. *, ?, /, $) and accent marks.

4. Two of your columns/fields should be named “Latitude” and “Longitude,” assuming you will be using such coordinates for placing points on your map. Some mapping applications will automatically be able to detect these fields for what they are if the names are typed out and not abbreviated (e.g. “lat” and “long”).

Best Practice Tips:

5. Other columns/fields should simply help you classify your data.

Best Practice Tip:

  • In general, try to keep each individual column/field as singular as possible; that is, try not to have one column/field tell you multiple things about your data.

6. When your data is ready, save or export it into the .csv (comma separated values) format. This is a basic, versatile file format which most other spreadsheet and mapping applications should be able to read.

Best Practice Tip:

  • If you are using Microsoft Excel, there are a number of different .csv options you can use when saving your document, but some of them can result in formatting which is not as friendly to import into other applications. In general, the “CSV (Comma delimited) (*.csv)” option should work well. If you find that you have problems with that one, you could try “CSV UTF-8 (Comma delimited) (*.csv)” option instead.

Further Resources

Spreadsheet applications

Add-ons and plugins

  • Geocode by Awesome Table -- A free add-on for Google Sheets which will get longitude and latitude data from a list of physical addresses.

Last updated