Logarithmic Graph Interpolation

wirehead

New Member
Joined
Mar 29, 2011
Messages
4
Alright, I think I’ve looked everywhere and can't find what I’m looking for; so here is my question. I have a Lin-Log graph (lin "y" axis-log "x" axis) i have multiple points in the graph and want to interpolate points that i don't have plotted. I thought this would be an easy task but has been quite difficult. I don't know the mathematical relationships between the X&Y variables; I transposed the graph out of printed document. I want to be able to input a value for X and have the graph spit out the Y value. I saw a thread about a log-log graph but that didn't help me. Thanks for any help that anyone can provide.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Don't use a graph. Use the LINEST function to work with your transformed variables. See
Trendline Coefficients and Regression Analysis
http://www.tushar-mehta.com/publish_train/data_analysis/16.htm

Alright, I think I’ve looked everywhere and can't find what I’m looking for; so here is my question. I have a Lin-Log graph (lin "y" axis-log "x" axis) i have multiple points in the graph and want to interpolate points that i don't have plotted. I thought this would be an easy task but has been quite difficult. I don't know the mathematical relationships between the X&Y variables; I transposed the graph out of printed document. I want to be able to input a value for X and have the graph spit out the Y value. I saw a thread about a log-log graph but that didn't help me. Thanks for any help that anyone can provide.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
 
Upvote 0
So all you have is an image?
Or do you have coordinates? If so how have you arranged these values on the sheet?

sorry for the late reply. I do have the coordinates and have arranged and ploted them on the graph. I'm just trying to find the ones in-between the knowns. thanks for the help.
 
Upvote 0
sorry for the late reply. I do have the coordinates and have arranged and ploted them on the graph. I'm just trying to find the ones in-between the knowns. thanks for the help.
so
Originally Posted by p45cal
Or do you have coordinates? If so how have you arranged these values on the sheet?
Are there gaps? Vertically in a range? How?
 
Upvote 0
Like I wrote previously. Use LINEST to solve your problem.

sorry for the late reply. I do have the coordinates and have arranged and ploted them on the graph. I'm just trying to find the ones in-between the knowns. thanks for the help.
 
Upvote 0
I'm not exactly sure what you’re asking, I’m not much of an excel or math kind of person. Here maybe/hopefully is the answer you’re looking for. I have know X and Y values and they're arranged using an X,Y scatter strait line graph. There are gaps in both the X & Y axis's values. I would like to be able to put in a X axis value that isn't plotted and the graph/data would spit out the Y axis value and then mark it on the graph also. I can make it work on a lin-lin graph but not on the lin-log that this one must be. Thanks for the help and sorry if I still haven't provide what you asked for; but please have patience with me; even this forum thing is new to me.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
 
Upvote 0
If your data are linear when plotted as y vs log(x), then the data has a logarithmic relationship, as you pointed out. For example,

Code:
      A --B--
  1   x   y  
  2   1 1.000
  3   2 2.386
  4   3 3.197
  5   4 3.773
  6   5 4.219

The formula in B2 and down is =2*LN(A2) + 1

If you plot it with a logarithmic y axis, it's linear (perfectly linear; yours surely isn't if it's measurement data).

You can extract the log trend using LINEST. Select two side-by-side cells (say D2:E2), and paste this in the formula bar:

=LINEST(B2:B6, LN(A2:A6))

Don't press Enter; instead, press and hold the Ctrl and Shift keys, then press Enter. You'll see

Code:
      D E
  2   2 1

So let's add some noise. Change the formula in B2 and down to

=2*LN(A2) + 1 + (RAND()-0.5)/10

Then you might see

Code:
      A --B-- C --D-- --E--
  1   x   y                
  2   1 1.033   1.991 1.024
  3   2 2.375              
  4   3 3.243              
  5   4 3.773              
  6   5 4.232

The values in D2 and E2 tell you the best fit for the trendline

y = m * ln(x) + b

Now, suppose you want to interpolate y for x=1.5. You have two choices: interpolate along the trendline, or do a piecewise interpolation between the points x=1 and x=2. Which do you want?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,602
Messages
6,179,844
Members
452,948
Latest member
UsmanAli786

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