Excel – Finding a Point in an Excel Line Graph

chartsmicrosoft excel

I have this graph here:
excel graph

I need to know what the y value is when x equals 5.5, however I do not know how to do that and adding a trendline is not very accurate for this graph, especially because it must be as accurate and precise as possible. Please help!

Best Answer

You could do a linear interpolation, which I describe in a tutorial called Excel Interpolation Formulas on my blog. I've constructed your case below, with data I've manually digitized (i.e., "eyeballed"). This won't follow the nice curves along the XY plot, but it might still suit your purposes.

The X and Y data are in columns A and B. The X we want to find Y for is in the light gold shaded cell D18, and the resulting Y value is in E18. First we need to find which X value our desired X value falls on or after, so in cell E20 there is a simple MATCH formula to find this:

=MATCH(D18,A2:A27,1)

D18 is the value we're looking up, A2:A27 is the range we're looking for it, and 1 means this range is in ascending order and we want the largest value less than or equal to our sought value in D18.

My blog post cited above has the explanation for how the interpolation between point 6 and point 7 works here. The formula that does this in is cell E18:

=INDEX(B2:B27,E20)+(D18-INDEX(A2:A27,E20))*(INDEX(B2:B27,E20+1)-INDEX(B2:B27,E20))/(INDEX(A2:A27,E20+1)-INDEX(A2:A27,E20))

or wrapped to avoid horizontal scrolling:

=INDEX(B2:B27,E20)
 +(D18-INDEX(A2:A27,E20))*(INDEX(B2:B27,E20+1)-INDEX(B2:B27,E20))
 /(INDEX(A2:A27,E20+1)-INDEX(A2:A27,E20))

This X-Y pair is plotted as the orange cross hair against the blue dots and lines of the original data.

Excel Interpolation

Related Question