+ Reply to Thread
Results 1 to 3 of 3

Multiple Location plotting within radius

  1. #1
    Registered User
    Join Date
    07-10-2018
    Location
    Brighton, England
    MS-Off Ver
    2013
    Posts
    1

    Question Multiple Location plotting within radius

    Hi,

    New here but hopeful someone will have a solution!

    I'm looking at creating a workbook which will automatically give me the information of all locations within the desired radius.

    There are 3838 locations which will be constant, however I'll need to calculate how many of these locations are within an 'x' mile radius of other locations. (the second locations will vary based on my client requirements)

    So far I've put together a sheet which calculates the closest possible location only, which is a start but ideally I need to know all points within 'x' miles.

    Any suggestions welcome.

    thanks

    B
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Multiple Location plotting within radius

    I'm a bit fuzzy on the requirement. I'll explain what I think it is and you can tell me where I went wrong.

    Let's look at ROSE SUPERMARKET. You want to look at all the customer locations and compute a string of them where the customer location is within 50 miles. The results would look like OTS1, OTS6, OTS9 - with real names, of course.

    If this is so, would you have an objection to having the customer locations in a separate table from the Main Table?
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Multiple Location plotting within radius

    I did a bit of reverse engineering and reread the OP. I think this is more along the lines of what you want. You want every OTS POSTCODE within 50 miles of the OTS POSTCODE for any given row.

    Specify the radius (in miles) that you want in Cell C1. I specified a half mile and I still got more replies than I could handle. I haven't checked, but I think every Post Code is within 50 miles of every other Post Code.

    Warning, there are 3838 Lines and each of these have to loop against 3838 lines - that's a bit shy of 15 million calculations. The code runs a bit slow.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. plotting a location an a map using latitude and longitude
    By sa1ntj0hn in forum Excel General
    Replies: 2
    Last Post: 11-06-2015, 12:49 PM
  2. Find locations within a radius of zip code and return location info for mail merge
    By eamador in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-23-2013, 12:29 AM
  3. formular for radius from three points
    By uswaldronz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-08-2013, 03:18 PM
  4. Help plotting filled shapes (currently plotting outlines using scatter)
    By j_man2211 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-23-2012, 10:34 AM
  5. how may entries within a given radius
    By LewR in forum Excel General
    Replies: 7
    Last Post: 01-07-2011, 07:15 PM
  6. Find objects with in a radius
    By LewR in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-07-2011, 01:33 PM
  7. [SOLVED] setting the radius of a pie chart
    By anson in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-23-2005, 11:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1