Hi Jon,
Thanks very much.
I should have been able to work that out for myself really, but the
trig part of my brain has been unused for a couple of decades.
--Winny
Hi Jon,
I cannot derive the formula you got but it cannot work for any vertical
or horizontal line.
For an approach from MathWorld see
http://mathworld.wolfram.com/Point-LineDistance2-Dimensional.html
It gives the distance of (x0,y0) from ax+by+c=0 as
abs(a*x0+b*y0+c)/sqrt(a^2+b^2)

Signature
Regards,
Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions
> You know slope and intercept of fitted line, and coordinates of point,
> so you can calculate dx and dy, the horizontal and vertical distance
[quoted text clipped - 26 lines]
> >
> > --Winny
Jon Peltier - 25 Sep 2005 00:29 GMT
He he, I used a much less advanced technique than you did.
- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______
> Hi Jon,
>
[quoted text clipped - 6 lines]
> It gives the distance of (x0,y0) from ax+by+c=0 as
> abs(a*x0+b*y0+c)/sqrt(a^2+b^2)