I want to find the intersection of two lines.
I have two points for the first line:
A(x1,y1) B(x2,y2)
and other two points for the second line:
C(x3,y3) D(x4,y4)
.
Is there an Excel formula that I can use to find the intersection of the two lines (the point that connects the first line with the second one)?
I tried to find a mathematical formula, but it's a little big, so I want to avoid this approach.
Best Answer
Your problem is something I recall from algebra class many decades ago. It's called "solving an equation with two variables."
You'll want to convert your lines into formulae of the format "y = mx + b" in which m is the slope of the line and m is the y intercept. This aspect is solved at math.com, from which the following information is copied:
When you've converted the lines to this format, mathplanet.com has the next sequence of steps:
I don't think you'll find anything other than a mathematical formula, or a combination of formulae. I'm not sure what "a little big" means in this context, but one cannot avoid the math to solve this problem.
If your lines are parallel, you may run into a divide-by-zero error. If your lines are too short to intersect, you will get the "extended" intersection point as if the lines were of infinite length.
"math is fun!"