Skip to content
Explainers & Big Questions

How to Make a Country Map From Excel or CSV Data

Worked country map showing Canada, Japan and Georgia in three numerical classes, with no-data countries in gray.

To make a country map from Excel data, put one country on each row, add a value or category, then copy the cells or save the sheet as a CSV. Use country codes such as CAN for Canada and GEO for Georgia. If countries had different numbers of survey invitations, map responses per 1,000 invitations so the colors compare response rates.

The Choropleth Map Maker accepts pasted Excel cells and CSV files. You can keep both the original rows and the settings in an editable project. If the finished chart belongs inside an Excel workbook, the last section explains Excel’s built-in Map chart.

Prepare one row per country

Imagine three national teams inviting people to answer the same questionnaire over the same period. Canada received the most responses, but it also sent the most invitations. These invented numbers let you test whether your map answers “How many responses?” or “How often did an invitation lead to a response?”

Survey responses per 1,000 invitations in three fictional national samples
Country codeResponsesInvitationsResponses per 1,000 invitations
CAN (Canada)84,0002
JPN (Japan)02,0000
GEO (Georgia)36005

For Canada, divide eight responses by 4,000 invitations and multiply by 1,000. For Georgia, the same calculation is 3 ÷ 600 × 1,000 = 5. A map of raw totals places Canada ahead of Georgia. A map of response rates reverses their order. Both maps can be correct when the title says which question they answer.

Copy this CSV into the map maker

Paste the four lines below into a plain-text file and save it as country-response-rates.csv using UTF-8, or paste them directly into the editor. Keep the numeric cells free of thousands separators. If you work in Excel, name the three columns as shown and copy their headers and rows together.

country,value,denominator
CAN,8,4000
JPN,0,2000
GEO,3,600

Download the three-country sample CSV

Preview the matches and apply the colors

Open the Data tab and paste the four rows, or open the saved CSV. Set Rate per to 1,000, then choose Preview data. Open Review matched rows and values. Check Canada (2), Japan (0) and Georgia (5), then select Apply data to map. An unmatched country or a duplicate identifier leaves the previous map intact.

Under Title, units, year and source, name the indicator “Survey responses,” enter “Responses per 1,000 invitations” for the units and identify the source as fictional teaching data. Preview and apply your edits. Keep No data visible in the legend. The Download tab exports PNG, SVG or WebP. Under Save or open an editable project, download the JSON to keep the table, denominator and classification for another session. Anyone with that file can read the original rows.

Map Maker preview table showing Canada 2, Japan 0 and Georgia 5 responses per 1,000 invitations.
Check the matched countries and rates before applying colors. Japan’s zero is a measured value.

Fix missing values, repeated names and unmatched areas

Zero is an observation. Japan sent invitations and recorded no responses. Its zero belongs in a numerical class. A blank measurement, or a country you did not study, has no rate to display. Keep it in No data. If no invitations were sent, dividing by zero would produce an undefined rate; record the rate as missing in your source sheet.

Repeated identifiers need a decision. If Canada appears once as CAN and again under its full name, inspect the source rows. Drop an accidental duplicate. If the entries are two non-overlapping groups from the same reporting period, add their responses and invitations separately, then divide the combined totals. Averaging their percentages gives an incorrect result when the two groups have different sizes.

Check the geographic level. GEO identifies the country of Georgia. For Georgia the U.S. state, use the U.S. state map maker with the state abbreviation GA. When a place looks wrong, correct the identifier in the table and preview the matches again.

When your spreadsheet contains labels instead of numbers

If a column says “Pilot” or “Comparison,” use a category map. Name the columns country,category and give each group its own label. A light-to-dark numerical scale would imply that one team is larger or more successful. Read how rates and color classes work on a choropleth map if your variable is numerical.

Create a filled map chart in Excel

In a supported version of Excel for Microsoft 365, arrange geographic names and values in adjacent columns, select the table, and choose Insert → Maps → Filled Map. For the survey example, calculate the rate in the worksheet first and select the country and rate columns. Use full country names or Excel’s Geography data type if an identifier is ambiguous. Saving to CSV exports the active sheet as text and leaves the chart and formatting in the workbook.

Frequently Asked Questions

Can I paste Excel cells without uploading a workbook?

Yes. Copy the header and cells together into Spreadsheet rows. For a file, save the active Excel sheet as UTF-8 CSV. The tool also accepts tab-separated text. Keep the workbook for formulas and the editable map project for its rows and settings.

Why do some countries have the same color even when their values differ?

A class represents a range of values. Two different observations can fall into the same range. Read the legend and check the exact values in the source table. A shared color alone does not establish that two countries have equal rates.

Can I use the same method to plot addresses or coordinates?

A country map assigns one value or category to an entire area. Addresses and latitude/longitude pairs describe points. Choose a location-mapping tool when the individual stops or buildings are the subject. See the comparison of free map makers by task.

What Did We Learn Today?

Canada’s eight responses and Georgia’s three tell a different story once the number of invitations is taken into account. An accurate spreadsheet map starts with the question, the reporting unit and the denominator. Keep the missing-data category visible and return to the original rows whenever a color looks surprising.

Sources & Data Notes

View sources and methods

The three survey records are fictional teaching data. The units are responses per 1,000 invitations. GeographyPin’s world map editor uses Natural Earth boundary data. Microsoft documents Map charts in Excel and exporting an Excel worksheet to a delimited text file.

See something off?

Thanks for your feedback!
Share via
Copy link