Locked lesson.
About this lesson
Exercise files
Download this lesson’s related exercise files.
07-02-Create a Map Chart-Start.xlsx899.8 KB 07-02-Create a Map Chart-Complete.xlsx
2.2 MB 7.02 create-a-map-chart - Exercise.docx
43 KB Exercise - Create a Map Chart.xlsx
108.5 KB 7.02 create-a-map-chart - Exercise solution.docx
125.2 KB Exercise Solution - Create a Map Chart.xlsx
8.6 MB
Quick reference
Create a Map Chart
Create a Filled Map Chart using PivotTable data.
When to use
Map Charts are a great choice if we have geographic data that we need to visualize.
Instructions
Map Charts help us visualize geographic data. However, if we want to create a map chart using data that's in a PivotTable we are going to run into some issues. Map Charts (and other chart types in Excel) cannot be directly created from PivotTable data.
In the screenshot below, we have a PivotTable. If we try and create a Map Chart, we get an error.
We can work around this by removing the data from the PivotTable first, creating the map chart and then pointing the chart back at the PivotTable data.
- Click anywhere in the PivotTable.
- Press CTRL+A to select all.
- Press CTRL+C to copy the data.
- Click in a blank cell somewhere else in the worksheet.
- From the Home tab, in the Clipboard group, click the lower half of the Paste button.
- Click Paste Values.
This will paste the values only without the PivotTable.
- Click anywhere in the new table of data.
- From the Insert tab, in the Charts group, click Maps and Filled Map.
The map chart will be inserted into the worksheet.
If we click on the chart, we can see the dataset that the chart is using.
If anything updates in the source data, the chart will not update because it's not using the PivotTable data.
- Click on the chart.
- From the Chart Design tab, in the Data group, click Select Data.
- In the Chart data range field, replace the current cell range with the PivotTable cell range.
- Click OK.
- Delete the second table.
Hints & tips
- This process can be followed for any chart type that cannot be built directly using PivotTable data.
Lesson notes are only available for subscribers.