Forum Discussion

MTrummer's avatar
MTrummer
Copper Contributor
Jul 03, 2020

Which postal codes are available on cartogram chart

I want to show some data on the cartogram chart - thousands of records which belong to certain postal codes.

Basically this works fine using the cartogram chart. I have a Country row, postal code row and a value row.

 

The problem is that some postal codes are not known (Germany and Austria) but they are found in e.g. USA (even though I do use the country row). This makes the chart impossible to use because instead of Germany I see nearly the whole world.

 

LandPLZWert
Deutschland8033120
Deutschland8033320
Deutschland8033520
Deutschland8033620
Deutschland8033720
Deutschland8033920
Deutschland8046920
Deutschland8053820
Deutschland8053920
Deutschland8063420
Deutschland8063620
Deutschland8063720
Deutschland8063820
Deutschland8063920
Deutschland8068620
Deutschland8068720
Deutschland8068920
Deutschland8079620
Deutschland8079720
Deutschland8079820
Deutschland8079920
Deutschland8080120
Deutschland8080220
Deutschland8080320
Deutschland8080420
Deutschland8080520
Deutschland8080720
Deutschland8080920
Deutschland8093320
Deutschland8093520
Deutschland8093720
Deutschland8093920
Deutschland8099220
Deutschland8099320
Deutschland8099520
Deutschland8099720
Deutschland8099920
Deutschland812412
Deutschland812432
Deutschland812452

The above data works nice - but change the postal code from e.g. 81243 to 81242...

 

Any hint how to either remove not working postal codes or show just Germany/Austria on the cartogram chart?

2 Replies

  • NikolinoDE's avatar
    NikolinoDE
    Platinum Contributor

    Excel sees a number like 81242 and gets confused because the same number exists as a postal code in Germany and a ZIP code in the USA, so it picks the wrong one and draws a map of the whole world.

    Here is a way to fix it permanently:

    The Best Solution (Use GPS Coordinates)
    Instead of asking Excel to guess where a postal code is, give it exact Latitude and Longitude (GPS coordinates). Excel never gets coordinates wrong.

    Here is the simple 3-step plan:

    1. Download a free list of German and Austrian postal codes that includes their matching Latitude and Longitude (you can easily find these online, for example via OpenGeoDB).
    2. Add two new columns to your Excel sheet (Latitude & Longitude). Use a simple XLOOKUP formula to match your postal codes to this list and pull the coordinates into your table.
    3. Plot the map using these coordinates instead of the postal codes (Insert > 3D Map, or Insert > Scatter/Bubble chart). Your data will now show up exactly where it belongs in Germany and Austria.

    Quicker Plan B (If coordinates feel like too much work)
    Add a "State" column to your data (e.g., Bayern for Munich, Nordrhein-Westfalen for Cologne). When Excel has the Country and the State, it usually has enough context to place the postal code correctly in Germany.

    A small tip: Also change Deutschland and Österreich to Germany and Austria—English names are recognized more easily by Excel's system.

    Moving to coordinates is the most professional and reliable way, especially with thousands of rows. It will completely stop your map from jumping to the USA!

     

    My answers are voluntary and without guarantee!

     

    Hope this will help you.

     

    Was the answer useful? Mark as best response and like it!

    This will help all forum participants.

  • umair1522's avatar
    umair1522
    Copper Contributor

    Go to your data settings, click on your postal code column, and set its Data Category to Postal Code or Zip Code, and make sure the country column is tagged as CountryRegion.