+ Reply to Thread
Results 1 to 5 of 5

Finding the Hypotenuse of from two pairs of X,Y Coordinates

  1. #1
    Registered User
    Join Date
    01-20-2010
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2008 For Mac
    Posts
    10

    Finding the Hypotenuse of from two pairs of X,Y Coordinates

    Hello All,

    I have a map with several waypoints and would like to find the distance between any of these two waypoints. Sounds simple, but I have having an issue with the later parts of the excel file. Let me explain further.

    There are over 100 waypoints on this map we have. Each waypoint has an, seemingly arbitrary, X-coordinate and Y-Coordinate. However, if you divide the coordinates by [X], they turn into miles. It should go without saying that finding the distance between two waypoints is rather simple mathematically, but I having an issue figuring out how to pull two random waypoints and having the distance automatically calculated.

    So far, I just have column A with the waypoint name and with column B and C having the X and Y coordinates respectively. Is there anyway I can create some sort of call function that when two waypoint values are entered it would automatically calculate the distances?
    Last edited by LordAcoustic; 02-04-2010 at 11:50 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Finding the Hypotenuse of from two pairs of X,Y Coordinates

    Can you upload example workbook with desired inputs and outputs?

    Basically, you can do that with VLOOKUP I guess.

  3. #3
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Finding the Hypotenuse of from two pairs of X,Y Coordinates

    Play with F2, F3

    I used VLOOKUP and data validation
    Attached Files Attached Files
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  4. #4
    Registered User
    Join Date
    01-20-2010
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2008 For Mac
    Posts
    10

    Re: Finding the Hypotenuse of from two pairs of X,Y Coordinates

    Quote Originally Posted by rwgrietveld View Post
    Play with F2, F3

    I used VLOOKUP and data validation
    I think that will work perfectly... my only question is that if I add addition waypoitns (since there are over 100) will that F2 and F3 continue to add all of the additional waypoints?

  5. #5
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Finding the Hypotenuse of from two pairs of X,Y Coordinates

    I knew that was going to be your next question

    Yes, I look in the entire column A:A

    Demerrit, Top value in the validation list is your header (if you use one)

+ 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