This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Hello Experts, I need some help in getting the distance
1. between below mentioned Lat and Long,
2. then find the value which has greater than 70% and return output which is within 3 miles and have value less than 60% with respect to the first column.
eg., check the value in Red(92.2), and it will jump to the value in Green(8.66) and get the result as 03RW316-1 since the value is below 60% and within 3 miles of radius.( just an example it moght not be exact within 3 miles.)
I don't understand what you mean by "value less than 60%" - less than what? The 1900 column is confusing as well - what is that value? I see you have the expected result in Red is the only one that differs from the Site field. Can you provide some more insight on these figures?
1900 column is in percentage: if you see first value of 1900 column is 12.24(which is less than 70%) so the result should be exactly like Row 2 which is 03RW201-1 .then if we move down continuously like Row 1, then coming to Row 7: Column 1900 is 92.22(greater than 70%)so the example Expected result is the site name other than the Row 7 Site name which is 03RW316-1 instead of 03RW300-1 since the value of this Row is greater than 70% and jump to Row 22 which has 1900 column value 8.66 (less than 60%)...the expected result should have the value less than 60% within 3 miles of site column.
Please let me know it it helps.
Basically Expected result should have multiple conditions, one is replace site and value>70 with lesser than 60% within 3 miles
Yes it would be helpful to have some more information as the distance between the two points you mention is about 30 miles, so I don't follow the specific need.
N.B. I was able to get the distance between the points by creating a centriod using the longitute and latitude columns provided and then joined Expected Site with Site which gives two centroids for one record which enables you to use the distance tool.
just saw your notes on miles being dynamic - that can be accomplished by bringing in a field and just referencing the field instead of the hard-coded mileage. adding a secondary limit is the same thing, just add another process to look for a larger distance, but what you'd probably want to do is just look for the largest mileage acceptable then sort by Distance before the unique to find the closest site. the workflow may need some tweaking for your specific purpose.
Thanks Jarrod, wonderful approach, mine was little long approach, really appreciate it..
can we tweak a little bit in the formula and try to avoid the result from the at the same location..like here Site column Lat and Long are same as the site in the expected result column, instead can we do any other lat and long? as in yellow.