Excel Formula to Calculate the Third Point in a Triangle

Gusy

I need an Excel formula that can help me find the third point in a triangle, given most other information. This is not homework, meaning I do not need to do this just once. I need a consistent way to accomplish it repeatedly over the next few months, as quickly and accurately as possible, so I am hoping Excel or something similar will be the best tool. I am under the impression that there may always be two valid answers to this problem. If so, and if possible, four formulas, two for the possible X values, and two for the possible Y values, would be fine. In most cases, working out which is correct will not be difficult. My main concern is being able to do this accurately, repeatedly.

All points are on a 2D Cartesian system, (have X and Y values), and can be negative or positive. The triangle will be random, and so must be assumed to be scalene. For each triangle, I have two Cartesian points, along with the distances from those points to the third point. From this I can easily ensure that in the other columns, I have the lengths of all three sides, and all three inner angles in both radian and degree formats, as well as the two Cartesian points as X and Y values. How can I use an Excel formula to come up with the remaining X and Y values of the two valid third points?

I’ll lay out the columns / variables that I have here to be clear, in case you’d like to use my letters rather than traditional notation.

point 1:
A = X1
B = Y1

point 2:
C = X2
D = Y2

E = distance from p1 to p2  (calculated from other values)
F = distance from p1 to p3
G = distance from p2 to p3

H = inner angle at p1 in radians (calculated from other values)
I = inner angle at p2 in radians (calculated from other values)
J = inner angle at p3 in radians (calculated from other values)

The cells that will contain my formulas:
K = possible X3
L = other possible X3
M = possible Y3
N = other possible Y3

My assumption is that there would be two formulas for X3, and two formulas for Y3, each producing a possible solution, but I’m not 100% sure if this is true.

I can’t quite handle the math, but my instinct would be that I could somehow grab one of my distance formulas, for example the one to calculate distance E:

=SQRT(((C-A)^2)+((D-B)^2))

and manipulate it to solve for the one X,Y set, given distance and the other X,Y set, but each time I attempt that, I get lost or make an error before I find a functioning formula.

Is this possible to do in a simple way using the columns / variables above and a set of four Excel formulas? Thank you.

Kevin Cathcart

Here is one possible set of formulas, that does basically what Dane described. Tested in Google Docs.

A= ____                         // X1
B= ____                         // Y1
C= ____                         // X2
D= ____                         // Y2
E= sqrt((A-C)^2+(B-D)^2)        // Distance 12
F= ____                         // Distance 13
G= ____                         // Distance 23
H= acos((E^2+F^2-G^2)/(2*E*F))  // Angle 1
I= acos((E^2+G^2-F^2)/(2*E*G))  // Angle 2
J= acos((F^2+G^2-E^2)/(2*F*G))  // Angle 3
K= A+F*cos(atan2(C-A,D-B)+H)    // X3
L= A+F*cos(atan2(C-A,D-B)-H)    // X3Alt
M= B+F*sin(atan2(C-A,D-B)+H)    // Y3
N= B+F*sin(atan2(C-A,D-B)-H)    // Y3Alt

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Excel formula to calculate amount of overtime

From Dev

Excel Formula to calculate Specific amount

From Dev

How to calculate a formula and get a floating point number

From Dev

Excel Formula to Calculate Percentage on Different Sheet

From Dev

Match Function Excel 2013 - Formula will not calculate

From Dev

How to combine data and calculate in Excel with formula

From Dev

EXCEL: Formula to Calculate the Standard Deviation for Subsets of a Range

From Dev

Challenging Formula in excel to calculate successive remainder

From Dev

How do I add a third criteria to this Excel formula?

From Dev

IF formula not working - Trying to calculate correct shipping costs on items (Excel)

From Dev

Excel Formula to calculate number of user hits in a system everyday

From Dev

Can I use an Excel formula to calculate the sum of some continuous rows?

From Dev

create oracle function to calculate fields based on excel formula

From Dev

Excel Formula (or VBA) to Calculate Remaining Interest on Loan mid-term

From Dev

Trying to create a formula to calculate a rate value per row in Excel

From Dev

What is the Excel hotkey to re-calculate all formula in sheet?

From Dev

Make an array formula in excel calculate only on active rows

From Dev

Better way to calculate string formula in excel 2016/O365?

From Dev

Excel Formula: How to calculate amount to add, given target average price

From Dev

Excel formula - Calculate Days, Hours, Minutes and seconds between 2 timestamps

From Dev

Excel. Convert text to values and calculate the values in a formula

From Dev

Excel using sumifs or another formula to calculate based off of column criteria

From Dev

Excel: Formula to calculate the max consecutive days leading a rank

From Dev

Build a formula to calculate total duration in Excel when have different parameters

From Dev

Excel vba formula string doesn't calculate: #NAME? error

From Dev

Excel editing formula switch between edit mode and point mode

From Dev

Opengl calculate triangle derivatives

From Dev

CSS triangle has no point

From Dev

Point in triangle - SPOJ task

Related Related

  1. 1

    Excel formula to calculate amount of overtime

  2. 2

    Excel Formula to calculate Specific amount

  3. 3

    How to calculate a formula and get a floating point number

  4. 4

    Excel Formula to Calculate Percentage on Different Sheet

  5. 5

    Match Function Excel 2013 - Formula will not calculate

  6. 6

    How to combine data and calculate in Excel with formula

  7. 7

    EXCEL: Formula to Calculate the Standard Deviation for Subsets of a Range

  8. 8

    Challenging Formula in excel to calculate successive remainder

  9. 9

    How do I add a third criteria to this Excel formula?

  10. 10

    IF formula not working - Trying to calculate correct shipping costs on items (Excel)

  11. 11

    Excel Formula to calculate number of user hits in a system everyday

  12. 12

    Can I use an Excel formula to calculate the sum of some continuous rows?

  13. 13

    create oracle function to calculate fields based on excel formula

  14. 14

    Excel Formula (or VBA) to Calculate Remaining Interest on Loan mid-term

  15. 15

    Trying to create a formula to calculate a rate value per row in Excel

  16. 16

    What is the Excel hotkey to re-calculate all formula in sheet?

  17. 17

    Make an array formula in excel calculate only on active rows

  18. 18

    Better way to calculate string formula in excel 2016/O365?

  19. 19

    Excel Formula: How to calculate amount to add, given target average price

  20. 20

    Excel formula - Calculate Days, Hours, Minutes and seconds between 2 timestamps

  21. 21

    Excel. Convert text to values and calculate the values in a formula

  22. 22

    Excel using sumifs or another formula to calculate based off of column criteria

  23. 23

    Excel: Formula to calculate the max consecutive days leading a rank

  24. 24

    Build a formula to calculate total duration in Excel when have different parameters

  25. 25

    Excel vba formula string doesn't calculate: #NAME? error

  26. 26

    Excel editing formula switch between edit mode and point mode

  27. 27

    Opengl calculate triangle derivatives

  28. 28

    CSS triangle has no point

  29. 29

    Point in triangle - SPOJ task

HotTag

Archive