+ Reply to Thread
Results 1 to 4 of 4

Latitude/Longitude Porblem

  1. #1
    Registered User
    Join Date
    01-14-2009
    Location
    Kent,England
    MS-Off Ver
    Excel 2007
    Posts
    16

    Latitude/Longitude Porblem

    Hi Guys

    Bit of a strange problem but I hope somebody can help.

    Basically I have Two sets of data I have attatched an example of my data. However i will do have a huge database to work through.

    The data contains locations of two seperate databases some of the data will be the same on the first database as the second and some will be different.

    I need to find the locations that are the same and then compare the data in the third collumn.

    However as there is a differnet amount of locations in each database this is proving difficult because i cannot just sort the data to get it in the right order.

    What i need to solve this problem is a function/Macro that will search through the data and find the lattitudes and longitudes that are the same(regardless of the cells they are in) and if they are the same then compare the data in the third collumn.

    I hope someone can help as ive had this problem for a long time.

    If you need any more info please ask.

    Thanks in advance

    Ed
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Latitude/Longitude Porblem

    Try in D3:

    =SUMPRODUCT(--($E$3:$E$11=A3),--($F$3:$F$11=B3),--($G$3:$G$11=C3))>0

    adjust ranges to suit and copy down.

    True means Exact matches found for all 3 columns in other database.

    and similarly in H3:

    =SUMPRODUCT(--($A$3:$A$11=E3),--($B$3:$B$11=F3),--($C$3:$C$11=G3))>0
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    01-14-2009
    Location
    Kent,England
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Latitude/Longitude Porblem

    Hi
    Thanks for your reply that works well.

    However I believe i may have asked the wrong question before.

    What i really need to do is to compare the two database locations. If two locations are are the same i would like to copy the locations next to each other in to sheet 2 along with the data in the third collumn. This would enable me to easily edit the data in collumn 3 if it is different.

    Sorry to be a pain. Thanks for your help so far. Thsi may be too big a task to ask you to do so any advice you could give i would appreciate.

    Thanks again

    Edd

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Latitude/Longitude Porblem

    Maybe then in D3:

    =SUMPRODUCT(--($E$3:$E$11=A3),--($F$3:$F$11=B3),$G$3:$G$11)

    This assumes there will only be one occurance in the other database of each longitude/latitude combination.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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