Plotted graph from a table. Read value from the curve?

wrighty99

Board Regular
Joined
Apr 29, 2008
Messages
81
Hi I wonder if you can help.

I have a table which has been used to create graph curve in excel.

Is there a way of reading a value from the curve?

Many thanks in advance
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
why not plot your data as a scatterplot, add a trendline, and choose to display the equation of the trendline on the graph,

you could then use the equation of the trendline to determine the required value.
 
Upvote 0
Thank you for your reply.

The spreadsheet is for my engineers to take out with them on a tablet.

They would enter the tested results and the spreadsheet then has to do some calcs, then refer to a referencing table, which will report where on the curve (X axis distance) the correct reading can be referenced from the Y axis.

So I was hoping for this to all happen automatically and the sheet would return the value required.
 
Upvote 0
You can probably adapt something from these.

From chandoo, "Highlighting Data Points in Scatter and Line Charts":
https://chandoo.org/wp/2010/11/11/highlight-data-points-scatter-line-charts/

From EngineerExcel
http://www.engineerexcel.com/2-ways...point-on-the-x-and-y-axes-of-a-scatter-chart/

Both methods will only show points from the plotted data. They won't show interpolated data.

If you run into difficulties, post some dummy data with the solution you want to achieve. People are always willing to help, if they can.
 
Upvote 0
Thank you for your response.

I have found that you can use =SLOPE(W9:W10,V9:V10)*X9+INTERCEPT(W9:W10,V9:V10).

V W X Y
9 75 2.26 73 =formula
10 70 2.03

Result Y9 = 2.168

Therefore I don't need to graph a graph:)

However in the formula the cell references cant change.

How can I can those references based on a value.

example:

A B
=== ===
1 X Y
2 0 0
3 10 0.01
4 20 -0.01
5 30 -0.01
6 40 -0.02
7 50 -0.06

If the value I want to find is 45 how can I get excel to search the X column find that its in between X6 & X7 and use this inside the formula above?

Many thanks in advance
 
Upvote 0
You're using a calculated, local slope and intercept. I have one solution requiring helper cells and array formulas. I do hope you are familiar with multi-cell array formulas. I hope this works for you.

To enter the formula in D5:E5, select both cells, then type in the formula into D5. Do not type the curly braces. Do not press Enter. Instead, press Ctrl+Shift+Enter. Excel will place the formula into both cells and add the curly braces. Same procedure goes for the formula in D6:E6.

Don't omit the last comma in the INDEX+MATCH formulas. The empty argument after the comma makes Excel return the entire row.


Book1
ABCDE
1XYUser's X35
200Calc. Y-0.015
3100.01
420-0.01Helper_XHelper_Y
530-0.0130-0.01
640-0.0240-0.02
750-0.06
Sheet1
Cell Formulas
RangeFormula
E2=SLOPE($E$5:$E$6, $D$5:$D$6) * $E$1 + INTERCEPT($E$5:$E$6, $D$5:$D$6)
D5:E5{=INDEX($A$2:$B$7, MATCH($E$1, $A$2:$A$7, 1),)}
D6:E6{=INDEX($A$2:$B$7, MATCH($E$1, $A$2:$A$7, 1) + 1,)}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Thank you, Jon. For some reason my searches didn't come up with your thread. I was hoping someone with better math skills than mine would volunteer a solution, and you came through for me.

Now I have to bookmark your solution.
 
Upvote 0
Yeah, the search was not as effective as I'd hoped. I couldn't find any interpolation threads with my user name. In the Mr Excel folder on my hard drive, I have at least three other examples of interpolation, but that one is the only one I had the presence of mind to save the link. More recently I've gotten better at pasting the link into a cell on the worksheet, so I can find it again later.
 
Last edited:
Upvote 0
Thank you thisoldman

That is perfect.

Will try immediately and report back.

Your help is very much appreciated.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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