Plotting stores and their competitors on a map

m5edward

New Member
Joined
Jul 20, 2016
Messages
42
Hi Everyone,

I work for a retailer and would like to create a map for all of our stores and their 3 closest competitors, like the example below. The blue dot is our store and the red dots are our competitors. Ideally, the map would change automatically when a different store is selected in a drop-down slicer. Please see example data below.

Thanks,

Mark

1642018961642.png


My Data

Table 1: All of our stores. Very basic. Every store has its own unique number, along with basic store details including geocodes. Example below.

Example Stores.xlsx
ABCDE
1Store NumberStore NameStore AddressLatitudeLongitude
2JL123Flagler1051 W Flagler St, Miami, FL 33130, USA25.7735880-80.2123746
3JL4563rd Ave1324 NW 3rd Ave, Miami, FL 33136, United States25.7869713-80.1999601
4JL7892nd Ave2634 NE 2nd Ave, Miami, FL 33137, USA25.8020217-80.1908089
Stores



Table 2: All competitors. Every competitor has a unique number along with basic information including geocodes. Example Below.

Example Competitors.xlsx
ABCDE
1Competitor NumberCompetitor NameAddressLatitudeLongitude
2C1Shoe Box1073 W Flagler St, Miami, FL 33130, USA25.773723-80.2125866
3C2Shoes R Us1062 SW 1st St, Miami, FL 33130, USA25.772599-80.2126713
4C3Tom's Shoe Store609 Brickell Ave, Miami, FL 33131, United States25.772631-80.2096832
5C4Shoe Laces1360 NW 3rd Ave, Miami, FL 33136, USA25.787999-80.2006365
6C5Sally's Shoes1039 NW 3rd Ave, Miami, FL 33136, United States25.786385-80.2005246
7C6Jose's Shoe Store1201 NW 1st Pl, Miami, FL 33136, USA25.786016-80.1983815
8C7Foot Locker189 NE 26th St, Miami, FL 33137, USA25.802056-80.1914622
9C8Athelte's World10 NE 27th St, Miami, FL 33137, United States25.802581-80.1949045
10C9Champ's2601 N Miami Ave, Miami, FL 33137, USA25.802581-80.1949045
Sheet1


Table 3: Our stores and their 3 closest competitors.

Example Distances.xlsx
ABCD
1Store NumberCompetitor 1Competitor 2Competitor 3
2JL123C1C2C3
3JL456C4C5C6
4JL789C7C8C9
Sheet1
 

Attachments

  • 1642017018509.png
    1642017018509.png
    145.2 KB · Views: 6

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hi Mark,
your question comes down to two questions:
1) calculate which shops are closest to each of your locations. To do that, you could use an excel formula. I made a VBA project for this, but you can take the raw formula on this page too: GitHub - krijnsent/geo_vba: A geographic toolkit/library for VBA, excel etc.
2) to plot it on a map. Unfortuntately, Excel is a bit tough when it comes to map charts. You could e.g. try this tutorial: 5 Steps to Easily Use Excel 3D Maps (Bonus Video Included)
Good luck,
Koen
 
Upvote 0
Hi Rijnsent,

I am trying to do this in PowerBI, and I know which competitors are closest to my store (see table 3). And those competitor store numbers have geocodes.

Conceptually, everything I need is in the 3 tables provided. I just need to know how to link them together and plot on the map.

Thanks,

Mark
 
Upvote 0

Forum statistics

Threads
1,223,677
Messages
6,173,794
Members
452,534
Latest member
autodiscreet

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top