Excel interpolate from table. Both Kenneth's and Cringe's solutions assume the relationship is linear (which it is in the table, but not in general). Excel interpolate from table

 
 Both Kenneth's and Cringe's solutions assume the relationship is linear (which it is in the table, but not in general)Excel interpolate from table I am trying to Export a table from matlab to excel and draw a line chart in Excel from the exported table

For example, look up the price of an automotive part by the part number, or find an employee name based on their employee ID. The file here is an excel file and I have imported them into matlab and named the variable naca which is the size of 395*4. In the "Create Forecast Worksheet" dialog box, click the calendar icon next to "Forecast End. Interpolating between Two Values by Joining SLOPE and INTERCEPT Functions. I would like to write an Excel function that linearly interpolates between data points. This equation will help you for interpolation. Will be testing it out shortly and I'll leave feedback. There's no logarithmic regression or interpolation in Excel, even in the Anlaysis ToolPak. It calculates the dependent variable (Y) for a given independent variable (X) by fitting a straight line to the available data. The calculator uses data points from thermodynamic property tables, and uses linear interpolation to. As an example, If I was looking for the results of a 45m2 area at 1. Step 4: Create 3D Interpolation Graph. 2. g. ” Choose the cell where you wish the data to be pasted. For example, if 11. Reverse Interpolate on 2D table. To interpolate linearly in Excel, follow these steps: Enter your data into an Excel worksheet. data points exactly by simply using linear interpolation between the known values. 4 (assuming you measured without any errors). match_type tells Excel how to match the lookup_value. #1. lookup_array is the range of cells that Excel searches through to find the lookup_value. Given an X vector, this function interpolates a vector Y based on the input curve (XY Range). Enter the data. INTERPXY is a versatile 2D interpolation function based on splines. scipy. It gets more complicated from there. Step 3: Use the Interpolate Function. See an example of linear interpolation. How to build a lookup table for tri-linear interpolation in NumPy? 0. You can monitor the calculated values in the Visual Basic Immediate window. Learn how to use interpolation in Excel to find the value between two points on a graph or a curve. 4 to find the resultant. 5 to 1 along A5 to A15. x FROM ( -- All. However, you may use similar techniques in other place. I will discuss these in future articles. I need to perform a 2-way lookup on a table. If you have multiple sets of data that are sampled at the same point. Each method is quite easy. interp (points,a [:,0],a [:,1]) Note also that np. suppose dates are in column A with values in column B, and that B2 is to. 3D (Surface) Interpolation Use INTERPXYZ to interpolate from a set of (x,y,z) data points. Instead you should 'add trendline' choose the type of relationship the x and y data share (or you believe works best) and click 'Display Equation on chart'. Based on an input value elsewhere, I want the formula to locate the two bounding values in column 1 and then to linearly interpolate the input value between the two (column 1, column 2) data points. The user should enter the the temperature and the code returns the corresponding viscosity. Sincerely yours, Vijay A. 2. We can mea-sure the length of the intervals a and b (simply by using a ruler). If the data is not linear, other methods that can be useful for interpolation are Polynomial Interpolation, Spline Interpolation, etc. 96 and speed 1100 result 56. How to Calculate Average Rate of Change in Excel. Description. interp(). A (a, b) B (c, d) The linear extrapolation formula is: Y (x)=b+ (x-a)* (d-b)/ (c-a) You can enter the formula according to two points of your data values and extrapolate the target value. Use a table to list your data. The values along the top (5,10,15,20) are relating to values of dx. 26 2M 0. Step 2: Creating UDF with VBA. This could be in two directions:. You might need to adjust the references for the very last entry, if you need to extrapolate beyond the last date. To fill in the missing qualities, we can feature the reach beginning when the missing qualities, then click Home > Editing > Fill > Series. ‘Table – The range of values with at least YCol columns ‘YCol – the column of Table used for the Y-side of the interpolation ‘Dim TableRow As Integer, Temp As Variant Dim TableRow As Long, Temp As Variant ‘see below Dim x0 As Double, x1 As Double, y0 As Double, y1 As Double Dim d As Double ‘TableRow – the row of Table that is. It can be used to probe the value of a surface passing through a set of scattred data points at arbitrary points. LINEAR must be changed to =FORECAST (depreciated soon). Sorted by: 1. For a given (PSI, GPM) pair you can find the four neighboring known data points: in the case of (2300, 4. If we leave the Type as Linear, Excel will use the following formula to determine what step value to use to fill in the missing data: Step = (End – Start) / (#Missing obs + 1) For this example, it determines the step value to be: (35-20) / (4+1) = 3. 4 is: =FORECAST(F2,C3:C4,B3:B4) This simple method works when there are only two pairs. 96 and speed 800 result in 48. Step 3: Prepare Dataset According to X and Y value. linear interpolation, log interpolation and harmonic interpolation, especially for statistics tables. 3 Torque. I am trying to Export a table from matlab to excel and draw a line chart in Excel from the exported table. In our example, the time taken changes by 1 minute when the speed of the bike. If we leave the Type as Linear, Excel will use the following formula to determine what step value to use to fill in the missing data: Step = (End – Start) / (#Missing obs + 1) For this example, it determines the. A short introduction to using linear interpolation to find intermediate values (i. The problem is that you interpolate the data on a linear scale but expect the outcome to look smooth on a logarithmic scale. 3) A lookup function (usually using approximate match option) to return slope and intercept at the specified date from the monthly table. Define a vector of x values for which you want to interpolate the curve. Step 1: Finding the Value of Z. 1 Linear Interpolation Property tables such as steam tables are tabulated at discrete values of the specific properties. In Python, Interpolation is a technique mostly used to impute missing values in the data frame or series while preprocessing data. values between two tabulated points) in steam tablesThe solution required would be a dynamic solution that will interpolate data in each and every blank sequence, irrespective of the number of blanks. I will assume linear change between each value. Fixing my interpolation function. mmm "you want to build a conditional linear interpolation" and said "Say ID is AED" let me speculate what you really want, First you have a Function (that do linear interpolate) Second you have (for easy explain) a table that have 3 columns: Column 1: ID (value that identify which ranges will use) Column 2: Number of values have varibale X. Linear Interpolation. Once we press ENTER, an array of coefficients will appear: Using these coefficients, we can construct the following equation to describe the relationship between x and y: y = . , time) and another for the dependent variable (e. Jerry. Thanks in advance for your valuable suggestions. Both Kenneth's and Cringe's solutions assume the relationship is linear (which it is in the table, but not in general). What I want is to rewrite the linear interpolation function so that it can calculate based off of a small interval. Use function intepolate(). For example, say for -173. " The filling in will be done by linear interpolation, using the corresponding cell entries of the immediately preceding and immediately succeeding rows. Interpolate Missing Data in Excel: 4 Easy Ways. I have a table with x,y values. You can use them to perform simple table lookup, as well as, interpolation and extrapolation from tables with one, two or three independent variables. =B2+ (A4-A2)* (B3-B2)/ (A3-A2) In the above example, the formula’s last section, highlighted in red, calculates how much time taken changes whenever the speed of the bike changes by 1. Hi there, I have previously been able to interpolate across a table using a combination of FORECAST, OFFSET and MATCH but for a new data set I'm using, I have been unable to produce a solution with this sort of formula. I expect that a simple linear interpolation would suffice for this project. I have a table with many discrete sequential values down the rows of column 1, with corresponding values along each row down column 2. a. My final data sets will consist of a couple hundred sets of data with each set containing 35-55 data points needing to be normalized to. It keeps your code clean, short, tidy and. I cannot use xlookup becaus eogf the. Cells. tutorial for linear interpolation in Microsoft excelexcel formula: =FORECAST(B17,OFFSET(KnownY,MATCH(B17,KnownX,1)-1,0,2),OFFSET(KnownX,MATCH(B17,KnownX,1)-. xlsm (with macro). See below figure. I. Using the Trendline, Excel can fit exponential, logarithmi. I want to interpolate for a given x1 value between the y values using the hllokup function also. GRIDXYZ is a powerful 3D data gridding function based on natural neighbor interpolation algorithm. One might even use the exponential interpolation for loss payouts espoused in Berquist and Sherman (1977). We would use Interpolate (from XlXtrfun) or Interp1d (from XonGrid) to provide the value at a specific temperature. Applying the FORECAST Function to Do Linear Interpolation 3. 1, (p. I would not recommend putting it in personal. The MATCH function returns a row and a column for values in a table, while the INDEX returns a value for row and column. interpolate import interp1d f1 = interp1d (x, y, kind='linear') Note that this interp1d class of Scipy has a __call__ method that. c. ) and some manually. But i have no idea how to do it. The worksheet is set up to interpolate a data set of up to fifty points to a new data set of up to fifty points. Learn how to use the FORECAST function and XLOOKUP to perform linear interpolation in Excel when there are only two or more pairs of x- and y-values. Excel has an in-built function called INTERPOLATE that you can use to perform interpolation. Method 2: Interpolate in Excel Graph Using Trendline. which would have target achievement values from 101% to X%, and corresponding bonus award amounts ending at 100% - and then vlookup will be made in that table). Method 1: Mathematical Equation for Linear Interpolation. 4 Torque. I'm trying to construct a workbook with the ability to interpolate between 2 values. 3- exact interpolated value. I have also tried interp1 function to interpolate. First, you need the data graph so Excel can fit a line to the data and g. The idea would therefore be perform the interpolation on a log scale already by transforming the data to its logarithm first and then perform the interpolation. While many people can interpolate on an intuitive basis, the article below shows the formalized mathematical approach behind the intuition. 0. For Trend method, it is not working as the raw data, like L parameters is not linear data, if I use Trend method, for the several. It can be used to map a set of scattered data points onto a uniform rectilinear grid for the purpose of plotting a 3D surface in Excel. for year etc (e. I have a specific point of temperature and pressure and need the thermal conductivity interpolated from them. =Interpolate($A$1:$A$3,$B$1:$B$3,D1,FALSE,FALSE). 4 -0. Your screen must be similar to this screenshot. =B1+ (A2-A1)* (B3-B1)/ (A3-A1) in B2. . Method 5: Interpolation Using TREND Function. The expression that helps calculate extrapolation is as follows: Y (x) = Y (1)+ (x- x (1)/x (2)-x (1)) * (Y (2) – Y (1)) The formula for linear extrapolation can be divided into the following steps: First, one must analyze the data to determine whether the data is following the trend and whether one can forecast the same. Transcribed image text: Below is a portion of a steam table used in thermodynamics. There are other Excel tools that we can use to project/interpolate values, such as Analysis ToolPak or Microsoft Solver Foundation. See examples, formulas, and download a supporting file for this. INC(<column>, <k>) Parameters. This calculator is programmed in Microsoft Excel. I create a table allDates where you can store all dates available, this allow found the missing dates. and the plot looks like (Scatter with. e. 004247 P sat 30 33 35 0. According to the linear interpolation equation, to estimate y, we’ll need to gather a few values from our table of x- and y-data: x1, y1, x2, and y2. Dec 15, 2011 #1 Hello - I have a family. [Alternatively, type =F or =FORE and double-click the FORECAST. For x1 and y1, use the input and output from the lower value, and for x2 and y2, use the input and output from the higher value. Using the Equation of the Linear Interpolation 2. Ideally, you'd create two columns for the x values and y values. a present or future value table. I would like to write an Excel function g such that for any x in [x_1, x_N]: g(x) = f(x), if x = x_iThe Standard Normal Table provides three significant digits. Is there any way to interpolate on a range within a Calculated Field? (Or any other good way to accieve this). Time series A has weekly data, but with two values omitted. I'm currently in college as a Civil Engineer. But as long as the known-Y and known-X arrays have just two elements each, FORECAST interpolates the actual data points. So I have a very large set of data (4 million rows+) with journey times between two location nodes for two separate years (2015 and 2024). I created a steam table calculator which makes it easy to calculate the thermodynamic properties of water in the subcooled, saturated, and superheated region. Download a free Excel template for interpolation. See examples, formulas, and tips for accuracy and error prevention. I will discuss these in future articles. What I need is a complete set of {date, value} pairs where for each date withing the range a value is known (either measured or calculated). Unable to download your file. 4. Download Excel add-on here: XlXtrFun™ Extra Functions for Microsoft Excel. 4 to March factor 267. Is there anyway I can get Excel to interpolate the. For arguements sake, say I have calculated values dx = 12. . Once we have our data set, we must create a chart based on those values. Click within the result cell and enter: Table of Contents hide. On the Edit menu, point to Fill, and then click Down. Below are the steps for using linear interpolation: 1. 6 0. Interpolated ENR table example HP 346B noise. Step 2: Fill the formula with the desired values. It is a little hard for me to explain the problem, so I'm posting a link to the file. Call the value that comes before A1. As the highest number in this table is 32, I need to generate a column with 32 cells, B1:B32. Next, let’s create a scatter plot to check if the data follows a linear trend. Time series B has more data points, at irregular intervals, over a shorter time span. 2 AOA, I want to find out the corresponding Cl & Cd. ‘index’, ‘values’: use the actual numerical values of the index. =iferror(forecast. Interpolation in Excel based on Splines and Natural Neighbor Algorithm 2D (Curve) Interpolation Use INTERPXY to: Interpolate from a set of (x,y) data points. I have found fomrulas for vlookup and xlookup but not for hlookup. Jerry. Here are the steps for performing linear interpolation in Excel using the mathematic formula: 1. To do the interpolation for input values that lie between the index values in the table, the following are needed: The row number of the smallest vertical index value that is greater than (or equal to) the vertical input value vnum. 2) Calculate slope and intercept for each pair of points (for each firm) as part of the lookup table. In between each column after the first one, I would like to add one which contains the month preceding it, and the interpolated value based on the preceding and next column. Result: internal energy = -20. 674), for 40 C in the first column. 1. I have attached. Use INTERPXY to interpolate from a set of (x,y) data points at an arbitrary point. The transpose was necessary with matrix logic to accommodate a table (starting at xQuad and then yQuad) of possibly linear-interpolation adjusted outer influence points created by IF logic, with 4 XY points defined in 8 columns shortly after each inner interval as defined by the original XY data columns in A & B. LINEAR formula to the cell where you want to add the interpolated value. 220 206 147 114 94. There's not really that much data I'm dealing with and I've avoided known memory hogs like vlookup, etc. As the highest number in this table is 32, I need to generate a column with 32 cells, B1:B32. In this method, we will use a VBA code for searching a value in a range, and then, get the desired result with the help of the interpolation. The interp1d class in the scipy. Using the Trendline, Excel can fit. Below is code that. This seems really common. 32 9M 0. 40 5 4 4. 7). The basic idea then follows these steps: Find the indices of the values in x_values which define an interval containing x. 3%, you can just interpolate those two points. xls, since then it will not be available to other users of the spreadsheet. 6% and 520 were the results achieved, I need to figure out what the weighted average is between 11% and 12% whilst at the same time the weighted average between 500 and 550 to arrive at a final exact figure. I hope you already have the LET () function, because I used it in my interpolation formula. b. 子供と楽しく貼ることができました。購入当時、鳥は貼らない予定でしたが、子供が大喜びで、鳥さんここに貼る♪と本当はいけないのでしょうが、何度も貼り直しては遊んでいました(笑)シールもストレスなく台紙から剥がせました。Description. Add input cells for height and span in J1 and J2 respectively. When referring to the tables to find the specific properties, very often the property which we are interested in lies between the tabulated values. If the sequence ends with a null or series of nulls, those will be ignored. If one of the looked-up values is not in the exact range, provide the results as follows: 1- no interpolation, the lower bound/first value. You can linearly. Now we can find the missing rows, and the real rows on either side (for interpolation): DECLARE @Missing table ( x integer NOT NULL PRIMARY KEY, prev_row integer NULL, next_row integer NULL ); -- Find missing rows INSERT @Missing (x, prev_row, next_row) SELECT Missing. 5/19/10 4:47 PM. Put the values of the data into the linear interpolation formula. Right click on your chart > Add trendline > Under Trendline options, select one by one and see which is the best fit > Go down and check Display Equation on Chart. One of the basic approaches of data. Hello, I have a question about interpolation. 1. So eg: I tried to first add a column between each one using the following code: N = len (df. The sine values calculation is based on the look-up table containing the pre-computed values of the sine function covering the whole period $left<0, 2pi ight>$ with 256 values. Thanks in advance for your valuable suggestions. Excel interpolation with results in situ. Your example has points beyond that range, and will require some thought. the hours of daylight for the 15th day of each month in the year 2006 in San Diego, California. Using linear interpolation, estimate the. valueI'm building a line graph in Excel 2010 with some missing data points. For the sake of overview, we put this into a table: x x 0 x 1::: x m y y 0 y 1::: y m For. In this article, we will learn how to add a trendline to our charts. 005629 Hint: define the vectors for the known values, T, P, and T_i (the temperature that. For instance, for x=3 with your example lists, the containing interval would be [x1,x2]= [2. Please find enclosed sample data. Interpolating a huge set of data. Implementing Weighted Moving Average Formula. Copy/paste the formula into other cells with missing values, (provided that you don't have 2 missing values in a row). Read tutorial and download example Excel file here:I'm having trouble figuring out how to search through the tables based on the input, and I'm not sure how to make it work if, for instance, the calculated average temperature is a value between those given in the table. This table will be used as the lookup table to perform the interpolations. I am able to do bi-linear interpolation if I know the x and y values to obtain a z value but I am not sure how to do the reverse process. The task: Depending on the country and the data type you want to get the correct value from the table. =B1+ (A2-A1)* (B3-B1)/ (A3-A1) in B2. Once the index number is returned, you can use. Extrapolation Formula. On the off chance that we leave the Type as Linear, Excel will utilize the accompanying equation to figure out what step is worth using to fill in the missing information: Step = (End – Start)/ (#Missing. การ Estimation กับ Interpolation ต่างกันยังไงครับ . 1. In the Formulas tab, go to the Defined Names section, then click Create from Selection. Step 1: Firstly, identify the independent and dependent variables for the function. The task: Depending on the country and the data type you want to get the correct value from the table. There are 7 tables with different values of B parameter (-0. For linear interpolation have the sheet active and run the following. Replace "x" with the value you want to. 4) Solve y=mx+b to interpolate. The corresponding desired pressure is then in the next column; in this case, 7. 1) If deemed necessary, rearrange data to simplify the lookup step. Using the TREND Function 4. By using the above data, let us create a interpolate function and draw a new interpolated graph. But it will become a pretty long formula, that is hard to read and/or copy across. Polynomial Interpolation in Excel: Step-by-Step Procedures. 9495 and for z of 1. The table lists thermal resistance in 200 FPM steps. The values along the side (180,185,190,195,200,210,220) are LE values. 1. Step 3: Use the Interpolate Function. Option Explicit Public Sub LinearFit () Dim rx As Range, ry As Range Dim x () As Variant, y () As Variant Dim i As Integer, j As Integer, N As Integer, M As Integer M = 6 'Columns N = 44 'Rows Set rx = Range ("A2"). This would be by interpolation in the following part of your table. แล้วเราจะหาค่า Ynewจาก Excel ได้ยังไงกันครับ แก้ไขข้อความเมื่อ . Simple Mathematic formula Linear interpolation is the process of estimating a new value by drawing a straight line between two nearby known values. Description. Step 3: Copy the original X-Y data to a new place. When the data is not linear, the first thing we have to do is to find out the function's behavior. 3. richthorpe, this post is unlikely to be very useful for your purposes, but you may get some interest from it. 1. You can use this method to estimate missing data points in your data using Python in Power BI or. if the result is not match he will interpolate the result int GUI. , I have a table with different cases from A3 to S3 and an m value ranging from 0. From the help: vq = interp1 (x,v,xq) returns interpolated values of a 1-D function at specific query points using linear interpolation. g. 5. In plain English, this Excel template draws a straight line between each point in a data set. Create a chart with your information. . Temperature 39. I am trying to figure out a way to interpolate data from a table to calculate a value. Vq = interp2(X,Y,V,Xq,Yq) returns interpolated values of a function of two variables at specific query points using linear interpolation. The linear interpolation equation above can be implemented directly in microsoft excel provided the tabulated values are monotonic in x, that is the. Utilizing Growth Trend Method. In the example below, the formula to interpolate and find the y-value that corresponds to an x-value of 1. 2 – Convert your Data into a Table. What I would like to do is interpolate {log(x. Resize (N, 2) ' get x values (2 columns) x = rx. y = y 1 + (x-x 1)(y 2-y 1)/(x 2-x 1). suppose dates are in column A with values in column B, and that B2 is to. It is only tested on positive values and ten rows, so you will definitely need to adapt it to many corner cases - but it should point you in the right direction: Sub Interpolate () Dim valueToTop As Integer For Row = 1 To 10 valueToTop = -1 valueToBottom = -1 If Cells (Row, 1). . Introduction to the Excel Template. interpolate ( axis =0, method ='linear', inplace =False, limit =None, limit_area =None, limit_direction ='forward', downcast =None, ** kwargs) Axis represents the rows and columns; if it is 0, then it is for columns, and if it is assigned to 1, it represents rows. 9. 96 and speed 1100 result 56. Method 1: Mathematical Equation for Linear Interpolation. Thread starter Pigankle; Start date Dec 15, 2011; Tags interpolation lookup P. 96 and speed 800 result in 50. 2m and 1. Step 2: Add the TREND formula as shows in image 2. You perform two independent linear interpolations on PSI, and then a final. 2,075. VLOOKUP then returns the first name for id 601, which is Adrian. Interpolation in Python is a technique used to estimate unknown data points between two known data points. How to Multiply Two Columns and then Sum in Excel. First, the value of x will go, then add the y-axis values and finally add x-axis values in the formula and click Enter. Forecast (temp, Array (indexys, indexys1),. . Interpolation. Converting Data to a Table. Data Interpolation within a Matrix. 9505. I was breaking the calcualtion down into two parts,. When installed, TriLookup adds eleven powerful lookup and interpolation worksheet functions to Excel, which offer greatly enhanced functionality compared to Excel's built-in lookup functions. So if I understand you correctly you just want to interpolate in 3D. So my preference always will be list format. 1. Open your spreadsheet and enter your data. . Vector x contains the sample points, and v contains the corresponding values, v (x). First, let’s enter the values for the following dataset into Excel: Step 2: Check if the Data Follows a Linear Trend. do a linear interpolation. 64. This is the only method supported on MultiIndexes. Excel Q. Accessibility center. If I understand your problem and assuming that the difference. If the horizontal axis is linear, we evidently must have x2 ¡x x¡x1 = b a = 1 f ¡1 ; (1)Short but useless answer -- yes, there is a way (probably more than one) for doing multivariate interpolation in Excel or any programming language. Interpolate for the exact JPH value, if not found. I mean It might be 3 tables with B equal to: -1 0 1. X, Y, and Z contain the coordinates of the sample points. [Example: "interpo"] 3. =VLOOKUP (F3;Tabel3;2;FALSE) EXCEL Screenshot excel excel-formula interpolation vlookup Share Improve this question Follow edited Mar 18, 2017 at 17:45 user4039065 asked Mar 18, 2017 at 16:58. Use the INTERCEPT function when you want to determine the value of the dependent variable when the independent. Step 3: Utilize Excel VBA Code to Build a User-Defined Function. To do the interpolation for input values that lie between the index values in the table, the following are needed: The row number of. Use INTERPXY to map a scattered (x,y) data points onto a uniform grid for easy plotting in Excel. I don't want to restrict myself to the two blank sequences in the test data by manually doing it each for each sequence. Any help would appreciated. Sure. HOW TO ATTACH YOUR SAMPLE WORKBOOK: Unregistered, Fast answers need clear examples. 384 kPa. In this example, we want to find out the missing data. As an example, if you want to find the saturated pressure of water at a temperature of 40 C you can look in Table B. But as long as the known-Y and known-X arrays have just two elements each, FORECAST interpolates the actual data points. See below figure. To create a sample linear interpolation formula, follow these steps: Type the following values in a worksheet: excel Copy A1: 9 B1: = (A7-A1)/ (ROW(A7)-ROW(A1)). The question is, both Trend method and Vlookup method are not working for me. 1. 3D Interpolation in Excel: 4 Easy Steps. Interpolation can be used to estimate the thermal resistance for non-tabulated values between the tabulated ones. 384 kPa. 4 (assuming you measured without any errors). -- MechEng2005. This is a simple double interpolationThe reference table used in the video is Table 19-from IS456:2000. Then you can use this actual equation to interpolate the value. For superheated refrigerant at 1. 1 Answer. MATLAB Data Interpolation - Basics. Copy/paste the formula into other cells with missing values, (provided that you don't have 2 missing values in a row). 6. 6 0. Use GRIDXYZ to map set of scattered (x,y,z) data points onto a uniform rectilinear grid. Interpolation technique to use. Implementing Interpolation with Microsoft Excel. With the function 'FORECAST', Excel seems to interpolate the values very oddly; some are above 1 and others under 0. 544 at 1. Method 3: Interpolate in Graph Using SLOPE and INTERCEPT Functions.