• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Matrix, Latitude, Longitude, Radius, Count

exc4libur

Member
Hi fellas :)

How are u?

Let's cut to the chase. I am doing a map research to find the count of stores that are close to each other, inside a 3 km radius. I have a solution but it's long and takes a lot of space. So if anyone can come up with a different more convenient solution, I would appreciate it :)
Maybe say, using sumproduct? (i know its volatile, but its ok).

I have attached an example workbook.

Best rgds,
exc4.
 

Attachments

C17: =SUMPRODUCT(--((6372.7976*ACOS(COS(RADIANS(90-$A$5:$A$10))*COS(RADIANS(90-A17))+SIN(RADIANS(90-$A$5:$A$10))*SIN(RADIANS(90-A17))*COS(RADIANS($B$5:$B$10-B17))))<3))

Copy C17 down

see attached file:
 

Attachments

Back
Top