Compare List Of Latitude / Longitude

May 18, 2011

I have a list of 800 lat/long coordinates. I need to see how many of those 800 are within 3 miles of another list of 7,000 lat/long coordinates.

I have found the following formular to find the distance between 2 lat/longs:

=ACOS(COS(RADIANS(90-Lat1)) *COS(RADIANS(90-Lat2)) +SIN(RADIANS(90-Lat1))
*SIN(RADIANS(90-Lat2)) *COS(RADIANS(Long1-Long2))) *3958.756

Is there a formula that would allow me to run each of the 800 Lat/longs against the list of 7,000 and indicate how many on the original list have a match within 3 miles?

I was thinking a combination of countif with an array formula, but I can get the order of operations correct.

View 9 Replies


ADVERTISEMENT

Latitude & Longitude Processing Help Please

Dec 12, 2009

I'm currently working on a project with data that includes columns for both latitude and longitude which I will need to convert from its current form into decimal degrees. The problem is that the coordinates are in the format DDDMMSS followed by a single letter indicating the direction, which means I have to first extract proper degree minute second format before I can do anything. Further complicating the problem is that each of the entries does not necessarily have all of the components I just described (eg some of the latitudes only have degrees and minutes but not seconds) and also if a longitude is less than 100 degrees, the third digit is not used in the data. There are over 2000 records so doing the conversion by hand just won't work and I've only got a few days to present this part of my project anyway.

I'm looking for a formula or series of formulas that will reliably convert something like 1083000W into -108.5000 when the last two zeros may or may not be there and the first digit may also be missing.

View 11 Replies View Related

Convert Zip Codes To Latitude And Longitude

Jul 15, 2014

I currently have an excel file of around 40.000 records with their zip/postal codes accompanying addresses in countries all over Europe, I would like to convert these into latitude and longitude coordinates.

View 2 Replies View Related

Extract Latitude And Longitude From Text

Feb 5, 2009

Some of the data I was given has latitudes and longitudes which are valuable to me but some of the information was entered incorrectly and the lat and long columns have only zeroes for some entries. I used some VBA to sort out all the ones that have zeroes in the lat and long columns because I noticed in a comments block some of them have the latitude and longitude placed in the comments instead of the designated spot.

An example of one of the comment cells is this:
Search and Rescue 30NM S MARTHA'S VINEYARD 40-37.4N 070-43.3W MEDEVAC OF 35YOM E

As such the problem I am having is figuring out how to search through the cells for ones that have a lat and long in them since there is other information and numbers in the comment cell. Keep the cells that have latitudes and longitudes and get rid of the rest. The red highlighted information is what is valuable to me. Another problem is not all of the latitudes are in that format sadly as can be seen by this example cell:

SAR Unreported Vessel/ 42 01. N 067 25. W CLOSED AREA II/041527ZAUG06

If anyone has any insight/references into how I could go about doing this I would pretty much owe you my life since doing it manually would take ages for myself and my group on this project.

View 5 Replies View Related

Latitude & Longitude -Text Separation

Mar 19, 2009

I am using Excel to calculate distances from latitude and longitude GPS positions. These positions have a format as follows:

S36 39.113 E174 25.945

These have been imported into a column, and using VBA I wish to separate latitude and longitude into two other columns. In both cases the minutes will eventually have to be express as decimals of the degrees. I don't mind if numerous columns are used as stages to get the final answer which is 36.234678 in one column and 174.15567 in the other.

View 14 Replies View Related

Converting Latitude/longitude To OSGB Grid Ref

Jul 31, 2008

I'm using excel to try and sort by distance a list of wind farm locations from a location i put in.

This should be relitavely straight forward, however there are a few elements that make it more complicated.

I am getting a list of wind farm locations from the internet, the BWEA site. The latitude and longitude data copied over is in text. I'm using Excel '07 but it still requires me to butcher the numbers out of it with several columns of REPLACE formulas, it isn't elegant and may well be wrong.

The second and harder problem is that I have to first convert the latitude and lonitude values into OSGB grid references. So far i have found the OS maps excel converter, but it only converts one value at a time. I need something that will convert all of them at once (i don't want to go through and individually type in each distance).

After that it is possible to use basic trigonometry to find the distance between them and any grid reference i put in.

View 9 Replies View Related

Splitting Large Numbers Into Groups (LATITUDE AND LONGITUDE)

Nov 16, 2009

I have a spreadsheet with a column of Longitude values like:
A
172828.383E

I want to somehow split the cell into new individual cells so it will be like this:

A B C
17 28 28.383

View 5 Replies View Related

Comparing Latitude And Longitude To Identify Closest Locations

Mar 23, 2013

I have list of address with zip code and Latitude and Longitude information. I am trying find a central locations, which will act as hub for rest of the address, by comparing distances from on locations to another.

Basically i need 2 things

1) How to identify the central locations
2) How to groups other locations around the central locations

Criteria here is distance

View 1 Replies View Related

Find Latitude And Longitude Within Radius And Within Given Slope And Return Number?

Feb 25, 2014

I have more than 1000000 coordinates with heights to sort through. The aim is to be able to give a specific radius and check all coordinates within this radius if the slope is more than a maximum slope. If this is the case it need to put the value (in this case) 100 in a new column. The reason for this is we have a reasonable flat terrain but the entire area is filled with Anthills. I need to sort the data. Normal ground points (No Anthills) should be labelled/coded as 200 and anthills as 100. This will allow my program to know the difference between the ground and anthills. In the tab "Input Sheet" I have a small portion of co-ordinates starting from row 8 to row 53 (this will have to extend all the way down to the last row in excel). I need to copy each row starting with row 8 (C8:E8) and paste it in row 2 (C2:E2). Column H indicates if the points are forming an anthill and the code needs to change. I have my final answer in the tab "Final Answer" that I require for my program. Is there any way I can write a VBA code that will check all the point instead of doing it manually.

View 4 Replies View Related

Find The Closest Match To Given Latitude / Longitude From Data Stored In 2 Columns?

Feb 2, 2014

I have 2 different sets of data: temperature data recorded at meteo-stations defined by latitude / longitude, and major world cities also defined by latitude / longitude.

After the user chooses the station's coordinates, temperature data is pulled out from the first data set; this works! However, I would like to be able to provide information about the closest city to the chosen meteo-station from the second data set.

File attached with sample data sets.

View 14 Replies View Related

Lookup Formula: Find The Longitude And Latitude Data From My "lookup" Sheet

Jan 28, 2009

In my workbook I have multiple sheets but I'm attaching a very simple workbook to demonstrate what I'm trying to accomplish. In my "Lookup" tab/sheet. I want to have known Latitude and Longitude data that will exist in columns A&B. Columns C & D will have address numbers and Street Name. I would like my lookup formula to find the longitude and latitude data from my "lookup" sheet, when the matching address information is typed in, in my 2009 sheet. I have to keep the street numerics and street name separate on this worksheet as well. I believe I'll need two separate lookup formulas as I need these formulas to start in cell G4 & H4 in my "GeoCoding1" sheet. Is it possible to have four columns of data to be viewed in a lookup formula? I tried this formula in cell G4 (GeoCoding1 sheet)

View 3 Replies View Related

How To Extract Latitude From A Cell

Jul 9, 2014

I'm am trying to extract latitude from a cell that has the longitude and latitude separated by a space followed by a space and addition numbers. Here are three examples:

-89.8498682 35.467965 0
-89.849981 35.468031 82
-89.8500404 35.4681497 107

I tried: =MID(B262,LEN(B262)-LEN(C262),FIND(" ",RIGHT(B262,LEN(B262)-LEN(C262)))) where B2 is the source and C2 is the extracted longitude and it seems to work some of the time, but here is an example of when it doesn't:

-89.8499246 35.468019 0-89.8499246 6 35.46801

View 3 Replies View Related

Comparing Data Latitude And Lngitude

Sep 9, 2009

I have two lists of data that are next to each other an example is below:

A B C D E F g
1 Lattitude Longitude Speed Lattitude Longitude Speed
2 52.49 -2.97 30 52.49 -2.97 30
3 52.48 -2.96 30 52.48 -2.97 40
4 52.48 -2.97 30 52.48 -2.96 30

This table goes right down to cells 20099 so it is a huge set of data as you can see i have sorted both sets of data by latitude from highest to lowest.

My problem is that I need something that will go through the data and highlight locations that are identical with different speed limits. So if both the latitude and longitude are the same then compare the speed limit.

So in the above example cells A4 and B4 are the same as cells E3 and F3 and the speed limit is different so I would like this to be highlighted.

However if the Lattitude and longitude is the same and so is the speed limit it does not necessarily need to be highlighted

I can get this to work but only if the lat/longs that are the same is in cells next to each other. I do not know where to start if the identical locations are in separate parts of the spreadsheet.

View 9 Replies View Related

Plotting Surrounding Zip Codes Based On Longitude & Latitudes

Aug 10, 2007

Having the Zip Code Tabulation Module from the US Census Bureau, I have the following and much more. But based on the 3 items :
5-digit Zip Code, Longitude, Latitude.

I'm wanting to Select a Zip Code and have (let's say) several Zip Codes plotted (maybe 4 - 10) out from the center point of the map.
either with, or without a connecting straight line .

And possibly a Scalable Miliage indicator |---- 10 Miles ----| which would be based on the distance.

View 9 Replies View Related

Compare List To 2 Others & List Differences

Mar 6, 2008

When we buy company 1 we need to import all of the products into our product database, however many of them are already the same. Each product has a manufacture code, and a supplier code. Company 1 uses 1 code for each product but it could be either a supplier or manufacture code - they don't use a consistent standard.

My company has a list of all supplier codes and manufacture codes for each product.
I need excel to compare the 2 companies lists and check if any of the products in their list are in my company's lists. I need excel to make a new list of any products from company 1 that are not already in the company 2 product list. The products that are not already in my list will need to be looked at manually, and so need to be easily identifiable after the matching (ie in their own list or the ability to copy into a new list.

View 5 Replies View Related

VBA - Compare Value Against List

Sep 2, 2008

If MyValue has been defined as "100003" and I have a list of codes in cells A1:A5 :
____A____
1| 100001
2| 100002
3| 100003
4| 100004
5| 100005

For a = 1 To 5
If MyValue = Sheets("Test").Cells(a, 1) Then
MyResult = "Yes"
Exit For
Else
MyResult = "No"
End If
Next a

Do I have to compare MyValue by "running through" the values in the list or can I set the list as a range and have MyValue compared against that.

View 9 Replies View Related

Monster Name List Compare

Jul 3, 2007

I've tried a few different tactics to compare two enormous lists of names, but I cannot get it to work to my satisfaction. I am attempting to get them to follow approximately the same formats, but because they are from unique sources they have very different information leaving me with no choice but to actually compare by name, rather than customer number or something useful like that. Given the variable nature of names (in this case company/corporation names) I've had a difficult time getting the lists to match in a way that provides meaningful results, but one of my lists is 9,000 strong so I need to figure out a way to automate this task.

View 9 Replies View Related

Compare To A List Of Array

Oct 3, 2009

How to compare to a string of objects

1. TH0102
2. KJ1403
3. KJ1404
4. TC0910
5. TC0905

Example :

if column data A2 (TC0905) match to any of the objects 1 to 5 , it will return me TRUE. if(A2=(1,2,3,4,5),TRUE)

View 5 Replies View Related

Compare A List And Highlight Similarities

Feb 24, 2014

Is there a way I can compare the names in column A to those in both B&C and highlight them a certain color if they are the same?

View 3 Replies View Related

Macro To Compare 2 Price List

Apr 11, 2012

I am looking for VBA Macros to compare 2 price list. I am trying to achieve the following.

1. Script look in sheet one i.e. Old list for duplicate if it is their it should display in 3rd sheet i.e.duplicate with sheet name and row number
2. Script look in sheet two i.e. New list for duplicate if it is their it should display in 3rd sheet i.e.duplicate with sheet name and row number
3. Script look in both the sheet for duplicate values it it is there then it should display in 3rd sheet i.e. duplicate

Also it should count the number of records on each sheet in column F1. If possible can we display the work % while checking both the lists.

Sample file is attached.

View 9 Replies View Related

Compare Columns & List Differences

Dec 26, 2006

I have included a small example file. What I would like to do is compare column A - Code on -CORP REC - on first sheet, with column A -code -SUPR REC on the second sheet. Then compare the differences and insert them into the third worksheet - discrepancy -Column A- Code and Column B Name.

Also is it possible to convert all the uppercase names on sheet one to lowercase as I would like the discrepancy sheet to names to be in lower case.

If other threads list exactly this I apologize. I am not really good at using others for adaption. but I can try if you want to direct me

View 5 Replies View Related

Compare 2 ListBoxes & List Matches In A Third

Aug 13, 2008

I have two excel sheets, one loads up in Listbox1 and the other in Listbox2, i would like to be able to see if any entries in listbox2 match with entries in listbox1 and then to display the matches in listbox3 with a click of a command button. Is this possible? If so, how would i go about it?

View 3 Replies View Related

Compare Two List And Sort Matched Values

Mar 20, 2013

I have 2 Data Lists, want to make compare and sort as matched values.

So, I need to find a solution with a formula or maybe Macro.(Formula is preferred)

At the attached file you will find the detail : CompareList&Order.xlsx‎

View 9 Replies View Related

Compare Email Address To List Of Names

Feb 21, 2014

I am trying to see if an email address matches with a list of names in a worksheet. If so, it would proceed with code. For example, I have an email address 'middlesburg.john@gmail.com' that we get through an input box and in the list, we find John Middlesburg. Since it is obvious that John Middlesburg is middlesburg.john@gmail.com, how can I get it to go on through?

View 4 Replies View Related

VLookup To Compare Two Lists And Add Difference To One List

Sep 1, 2013

I am trying to compare two lists and extract from one to add back to the source. However neither are alphabetically.

List 1
accessories
belt
boots
cardigan
coat
glasses
gloves
hat

List 2
tshirt
tshirt
jumper
jumper
jumper
tshirt
shoes
cardigan

So i would the vlookup to add automatically back to list 1 tshirt, jumper and shoes.

List 1 would now look like this

accessories
belt
boots
cardigan
coat
glasses
gloves
hat

tshirt
jumper
shoes

View 3 Replies View Related

How Can I Compare Strings To A Keyword List And Return A 3rd Value

Jan 24, 2008

I am trying to create my own budgeting tool. I have most of the tracker set up but I hit a stumbling block. I downloaded transations from Bank of America as a CSV file into excel. I want to categorize these transactions.

I created a keyword list that has words like "Starbucks" "Exxon" etc. Each of these keywords is then listed next to a category like "food" and "gas". So I want a formula that will compare the transactions to my keyword list and return the category type. Here is an example transaction:

CHECKCARD 0256 STARBUCKS USA 00029801 GAINESVILLE VA

I have a keyword "Starbucks" in f2 and "food" in g2.

View 9 Replies View Related

Compare Data-set With List & Summarize Matches

Jul 16, 2009

1) Background Info

We are trying to summarise some data that has been exported from an ancient database into a poorly delimited csv file. My colleague has imported the csv file into Excel ( attached), and we are trying to work out what to do next.

The dataset contains approx 300 records - each record being called a "sample" and having a unique sample number. NB: I have had to attach a cut-down version with only 3 samples, due to file-size - but it will hopefully give an idea.

Each sample contains 2 types of information that we are interested in (and a lot of irrelevant data besides). The relevant bits are:
- predicted occurrence of various species (given as a percentage for each species)
- observed occurrence of various species (given as positive/negative for each species, where positive is indicated by an asterisk)

2) What We're Trying To Do

We are trying to compare this dataset with a master-list of 80 species names. For each species on the master-list, we want to:
a) check whether it has a "predicted occurrence" value in each of the 300 samples (and if so, record the value in a summary sheet)
b) check whether it was observed in each of the 300 samples (and if so, record this in the summary sheet)

3) The Problem

Unfortunately, the dataset has imported into Excel as a gigantic list: 48000 rows (including loads of blanks) and only 3 columns across. To find the relevant data, it's necessary to:

a) open the attached workbook, and go to the worksheet named "Data"

b) Scroll through the rows, looking for the string "RIVPA" in column A. This tells you where each new sample begins. (The sampleID is stored in the same row as this, in column C. It is mixed up with a load of text, which we will need to separate out at some point, but that's a secondary consideration at the moment.)

c) Scroll down further until you find the text string "Predi" in column A. This indicates the beginning of the data we're interested in, for each sample (i.e. for sample 1, I'm talking about row 58). Count down a further 2 blank rows, and then you find the data itself:
- Column A contains the observed occurrence (a positive result is indicated by an asterisk)
- Column B contains the predicted occurrence
- Column C contains the species name

My colleague was trying to build a summary table, in the worksheet named "Summary". He was using the LOOKUP function to extract the data, but because there are so many samples, it's beyond unwieldy. He asked me if I could write a macro do do the job, and this is where I'm stuck.

How could I set up a macro that can identify where one sample starts and finishes, and where the data is within each sample? What is the most sensible shape for such a macro? If I could get the overarching logic worked out, I could make a start on writing the individual bits of code, but at present I just can't figure out how to begin.

To make things more difficult, the samples are not all the same length, and do not all contain the same list of species as each other. (However, at least there should be no species in the samples that are not in the master-list). The first sample begins on row 5, the second sample begins on row 173, the third on row 340, and so on.

View 8 Replies View Related

Compare Data With Specific Code To A List Of Codes

Dec 15, 2011

I got 2 sheets. (1 called "Revenue", the other "101") in the sheet revenue are department codes (variable 100 to 999) they are situated in row "B". the corresponding data in row "D".

this data needs to be transported to the sheet "101"

in the sheet "101" are put the numbers 100 to 999 in row "A"

in row "B" we need the data from the revenue sheet that is corresponding with the department code.

View 1 Replies View Related

Compare The Pts Values And Then List The Team Standings Based On Those Points

Sep 17, 2009

I have a list of nine teams from B13:B21 with Wins in column C, Losses in Column D, Ties in Column E. Pts are in Column F (all of these run row 13 down to 21). The team listed in B13 has a cell name of One in the Name Box, team in B14 has a cell name of Two, etc up to Nine.

The pts total for each team is also named, so F13 is called ptsone and has a current value of 8. F14 is called ptstwo and has a value of 10, etc.

I'm trying to do is in a different area of the spreadsheet put a formula that will compare the pts values and then list the team standings based on those points.

View 7 Replies View Related

Compare The Two Lists And Then Delete The Cleared Checks Off The Original List

Mar 18, 2008

I am trying to create a way to easily maintain a list of outstanding checks. I am able to import cleared checks into the spread sheet but cannot find a way to compare the two lists and then delete the cleared checks off the original list.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved