r/excel•
SolarAir

How can I use a mix of states and countries with a fill map?

unsolved

I have a data table that has a column for country, state, and quantity that I'm using for a fill map. It works great for showing US and Canadian states/provinces, but going forward I'd like to add other countries that may not have states to the map.

Here's a screenshot of the setup as it is now. Notice that Mexico isn't showing up filled in on the map. How can I get Mexico to show up as filled in?

I tried a list of just the states, using Mexico as a state instead of a country, but then it turns out there's a state in Mexico called Mexico, so it only colored a tiny fraction of Mexico instead of the whole country. I thought by rearranging the data so it's organized how I showed in the screenshot would trigger Mexico to be recognized as a country, but that wasn't the case. The map prompts also suggested I use state and countries in separate columns, but didn't give any other advice after that.

Posted Apr 7, 2023, 10:43 PM UTC

14
RedMapleBat1•

Could you use the two-letter codes that Mexico uses for its states? For instance, the two-letter code for the state of Mexico in the country of Mexico is EM.

Source: https://en.m.wikipedia.org/wiki/Template:Mexico_State-Abbreviation_Codes

2
SolarAirOP•

No. I have to use the 3 letter one (MEX) to get it show up, but that's not what I was looking for. I don't have data for the individual Mexican states, only the country as a whole.

1
AutoModeratorMOD•

u/SolarAir - Your post was submitted successfully.

Failing to follow these steps may result in your post being removed without warning.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1
NoYouAreTheTroll9•

You answered your own question in your question, bud... Mexico has states you just need to get the list...

Sometimes, they are called provinces, but essentially, they are the same thing.

1