Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Calculate the distance between two 2d co-ordinates

I have two co-ordinates that are given in x,y format.

E.g.
x , y
1 , 1
1 , 5

Is there an excel function or vba function that can be used to
calculate the distance between the two co-ordinates?

Cheers

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default Calculate the distance between two 2d co-ordinates

Hello,
if 1,1 are in A2,B2
if 1,5 are in A3,B3
A distance could be : =((A2-A3)^2+(B2-B3)^2)^0.5

"Vlad" a écrit dans le message de groupe de
discussion :
...
I have two co-ordinates that are given in x,y format.

E.g.
x , y
1 , 1
1 , 5

Is there an excel function or vba function that can be used to
calculate the distance between the two co-ordinates?

Cheers

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 293
Default Calculate the distance between two 2d co-ordinates

Hi Vlad,

=SQRT((X2-X1)^2+(Y1-Y2)^2)

--
Cheers
macropod
[Microsoft MVP - Word]


"Vlad" wrote in message ...
I have two co-ordinates that are given in x,y format.

E.g.
x , y
1 , 1
1 , 5

Is there an excel function or vba function that can be used to
calculate the distance between the two co-ordinates?

Cheers

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IS THERE A FORMULA TO CALCULATE THE DISTANCE BETWEEN DATES Alohalady Excel Worksheet Functions 2 June 6th 10 12:50 PM
Is there a way to calculate distance between 2 zipcodes? Serissa Excel Programming 3 August 7th 07 09:20 PM
How do I calculate the distance between 2 postcodes? Rhys Excel Programming 3 July 7th 06 08:23 PM
calculate time/distance KJO Excel Programming 3 April 20th 05 09:53 PM
CALCULATE DISTANCE BETWEEN TWO GPS POSITIONS Jon re Excel Excel Worksheet Functions 2 March 9th 05 02:14 AM


All times are GMT +1. The time now is 05:04 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"