ICON
Help Center / Split values in Excel for geocoding /

Split values in Excel for geocoding

When geocoding an Excel or Google spreadsheet, it's crucial to utilize as much address information as possible for higher geocoding accuracy.

However, it's common for Excel or spreadsheet data to have merged details like street names and house numbers, or postal codes and cities in the same column. How do you handle this when preparing the file for geocoding?

Solution

During the import process, if your data combines multiple address components in one column (such as city and postal code), you can assign the same column to different fields. For example, if a column contains both city and postal code, you can select this column for both the postal code and city fields.

This approach often resolves the issue. If not, it's advisable to further split these columns into separate ones for accurate geocoding.

How to split data into multiple columns?

There are several ways to split columns in Excel or Google Spreadsheets. Here are a few solutions.

Split Values in Excel or Google Spreadsheets

Text to Columns

Split Functions

Split functions explained. A few examples.

  • RIGHT() function: When you have a column where both postal code and city are combined, you can take advantage of the fact that postal codes always have the same amount of digits. So when you have cell like this "HALIFAX NS B3J 2B3" where you want to extract the postal code at the end, we have to extract the last 7 characters (spaces included). To do this you can use the following function to extract this postal code: "=RIGHT(CELL, 7)".
  • SPLIT() function: For example, if you have the text "HALIFAX,NS,B3J 2B3" in a cell, you can use SPLIT(CELL, ",") to split this text into three separate cells containing "HALIFAX", "NS", and "B3J 2B3".

Related blog posts

Gain Instant Access to a World of Maps

Spotzi Explorer is an integrated data catalog that lets you quickly and easily add data to your dashboards. Access a rich collection of maps and dashboards—explore postal codes, discover global income insights, or get inspired by maps created by our community. It’s the ideal tool for marketers, researchers, students, and anyone looking to enhance their market research, plan an OOH campaign, or work with location data.

Postal Codes Map
Create your free account Browse Datasets

Ready to turn your data into insights?

Spotzi's platform streamlines the process of geomarketing research & analysis by providing you with a one-stop-shop for all of your mapping and location data needs.

Are you ready to take your campaigns to the next level? Contact us to learn more about our plans.

Contact us

Contact

Spotzi North America
  • 125-720 King Street West
  • Toronto ON M5V 3S5
  • Canada
Spotzi Europe
  • Joulehof 9
  • 4622 RG Bergen op Zoom
  • The Netherlands