Solve 2nd simultaneous eqns

ykpotdar

New Member
Joined
Aug 1, 2002
Messages
12
Hi,

I know coordinates of two points (x & y ) and want to find the center of the circle of radisu R (known) passing through these points. How can I get EXCEL to do it? We can assume that R, x and y are three cells in a EXCEL spreadsheet. I want to do this for about 100 points.

Thanks,

-Yogesh
 
Minor tweak to otherwise very well written self-documented code: Move the Triangle_Height assignment to later in the code.
Code:
If MidptDist > Radius Then
    FindCircleCenter = "no solution"
    Exit Function
ElseIf MidptDist = Radius Then
    x_coordinate = x_mid
    y_coordinate = y_mid
    GoTo ExitTheFunction
ElseIf MidptDist = 0 Then
    FindCircleCenter = "infinite solutions"
    Exit Function
End If
Triangle_Height = Sqr(Radius ^ 2 - MidptDist ^ 2)
Jay Petrulis said:
Hi,

This is untested, so try this out on your data and report your results. {snip}
 
Upvote 0

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hi Tushar,

Aarrggh! That *was* later in the program when originally written. I moved it before I posted because I thought to group some calcs together to make the code easier to read. Thanks for the catch on this.

Ken,

I know you were just playing. I can take the ribbing, no problem. All in fun. :LOL:
 
Upvote 0
After exchanging PMs with Jay, I developed a Object Oriented version of his solution.

Visit the Excel | VBA page of my web site, then follow the link to 'VBA and Object Oriented Programming' To view the page in its own window, right click the link and select 'Open in new window'
 
Upvote 0

Forum statistics

Threads
1,216,730
Messages
6,132,388
Members
449,725
Latest member
Enero1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top