Determine intersection point of two lines on chart

doublej41

Board Regular
Joined
Mar 9, 2011
Messages
86
Hi All,

I have a chart set up that plots 3 data series'. One is some user input data and the other two are upper and lower tolerances.

Is there an easy way to get the y-axis value at the points where the user data intersects either of the tolerances? They may intersect more than once so I would need all points to be able to determine the maximum y-axis value.

I would preferably like to stay away from VBA.

Thanks
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Can you give us some more detail on what your data looks like ?

For example, if your data looks something like this . . .

Upper..........Lower........User
Tolerance....Tolerance...Data
1................5..............3
1................5..............4.5
1................5..............6

and so on...

then it is easy to highlight instances of user data that are outside tolerance.

If, on the other hand, your tolerance levels are more complicated, then the task will be more complicated.
 
Upvote 0
Thanks for your reply Gerald.

The tolerances are calculated by an equation and are curves, rather than straight lines. Both the x and y values increase with each point until the maximum value.

The user data is captured with some software. The values start at the maximum and gradually decrease.

Here is some example data:


Excel Workbook
BCDEFGHI
1User Data (x)User Data (y)*Upper Tol (x)Upper Tol (y)*Lower Tol (x)Lower Tol (y)
210271,417*0,150*0,150
310271,417*0,1635386730,06439214*0,1635386730,019297874
49181,932*0,17706720,123036766*0,17706720,044474022
59180,527*0,1905855910,180097791*0,1905855910,071364839
68124,779*0,2040938590,236251372*0,2040938590,099294475
78125,154*0,2175920150,291793571*0,2175920150,127967176
8789,965*0,231080070,346889342*0,231080070,157218297
9788,925*0,2445580350,401643123*0,2445580350,186943713
10666,905*0,2580259220,456126595*0,2580259220,217072051
11666,523*0,2714837420,510391805*0,2714837420,247551581
12550,513*0,2849315070,564478137*0,2849315070,278343229
13550,443*0,2983692270,618416362*0,2983692270,309416539
14437,255*0,3117969140,672231139*0,3117969140,340747169
15437,255*0,3252145790,725942642*0,3252145790,37231526
16325,4*0,3386222330,77956766*0,3386222330,404104341
17325,559*0,3520198880,833120374*0,3520198880,436100549
18215,221*0,3654075550,886612909*0,3654075550,46829208
19215,224*0,3787852440,940055743*0,3787852440,500668774
Sheet1
 
Upvote 0
OK, I understand . . . partly.

Which of those User Data points are outside tolerance (if any) and why ?
I.e. how did you calculate that they are outside tolerance ?
 
Upvote 0
I have just plotted the data and realised it doesn't give a great interpretation of what I am looking for.

Here is an example of a type of chart I am talking about:



I want to know the y axis value of the points where the blue line cuts either of the red ones.

The data is in the form as given above, however that is only a small sample.

Does this make more sense? It is possible to attach files on here?
 
Upvote 0
Sorry for the confusion.

Here is the data that produced the graph above:


Excel Workbook
BCDEFGHI
1User (x)User (y)*Upper Tol (x)Upper Tol (y)*Lower Tol (x)Lower Tol (y)
210271,417*00*00
310271,417*1,87074829914,30489152*1,8707482999,802356485
410273,263*1,90677966114,61967746*1,90677966110,03546254
510272,34*1,94256756814,93428228*1,94256756810,26874972
69181,932*4,21087533240,04777843*4,21087533229,53450557
79180,527*4,91504854450,76595874*4,91504854437,99254526
89181,324*5,38154897559,0007367*5,38154897544,5508513
99181,324*5,39772727359,30524832*5,39772727344,79423168
109181,932*5,413832259,60972778*5,413832245,03764422
118124,407*5,42986425359,91417529*5,42986425345,28108871
128124,038*6,09631147573,88728237*6,09631147556,51101363
138124,407*6,10940695374,19041993*6,10940695356,75576807
148124,779*6,68063314788,71434489*6,68063314768,53065911
15789,965*7,531796502116,4315058*7,53179650291,21956219
16788,925*8,092383639140,4343708*8,092383639111,0480572
17789,231*8,277027027149,7153534*8,277027027118,7517266
18788,712*8,5592686165,5602441*8,5592686131,9451119
19666,905*8,952894438191,8133837*8,952894438153,9064683
20666,523*8,960928652192,40932*8,960928652154,406316
21666,711*8,964932127192,7072767*8,964932127154,6562513
22667,092*8,968926554193,0052259*8,968926554154,9061941
23550,513*9,035476718198,0692168*9,035476718159,1563672
24550,443*9,179064825209,6787144*9,179064825168,9146576
25550,739*9,483590734237,9160698*9,483590734192,7270422
26550,985*9,997998399301,0447361*9,997998399246,2993719
27437,255*10301,3406*10246,5514
28437,255******
29437,01******
30437,174******
31325,4******
32325,559******
33325,61******
34325,507******
35215,221******
36215,224******
37215,224******
38215,224******
Sheet1



I would like to know when the user data intersects either of the tolerance curves.
 
Upvote 0
I can't see the chart you posted, but I tried plotting it myself and it LOOKS as if the user data never goes outside tolerance, although it seems to touch the upper tolerance line at one point.

If you know the equations that drive the tolerance lines, then presumably you can calculate the relevant values for any individual user data point, and highlight whether or not it is within tolerance.
 
Upvote 0
ComplexIntersection.xls
W
13
Sheet1


Can anyone tell me why this application is not able to find the intersection points of the two plotted lines?
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,710
Members
452,939
Latest member
WCrawford

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