V-look up to interpolate (simple linear interpolation)?

samtheman88

New Member
Joined
Feb 6, 2013
Messages
7
Hi,

I have the following table with one set of relationships.....

Stage (H)Outflow (O)Storage (S)2S/Δt2S/Δt + O
feetcfsacre-ftcfscfs
00.00000.00
0.124.440.49.6834.12
0.234.570.819.3653.93
0.342.341.229.0471.38
0.448.891.638.7287.61
0.554.66248.4103.06
0.659.882.458.08117.96
0.764.672.867.76132.43
0.869.143.277.44146.58
0.973.333.687.12160.45
177.30496.8174.10

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>

Then, I have this table with another set of data...

Inflow (I0)2S/Δt - O2S/Δt + OOutflow (O)Stage (H)
cfscfscfscfsfeet
0000.00
50500.00
100

<colgroup><col span="3"><col><col></colgroup><tbody>
</tbody>

<colgroup><col span="5"><col></colgroup><tbody>
</tbody>

To determine the outflow in the second table, I need to interpolate for outflow (O) using the first table and my first value of 50 for 2S/Δt + O in the second table. Any ideas how to do simple linear interpolation in excel???? Someone mentioned vlookup, but I can't seem to get it to work.
 
Unfortunately the version of excel I have on my laptop is 2003
It's a user-defined function that will work with any version of Excel.
 
Upvote 0

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Scrap that I've managed to figure it out!

Works a treat, thanks a lot for your help!
Thanks shg. I've never done a user defined function before so can you give me some pointers? I presume it is something to do with adding a new module in VBA. I've managed to obtain the code from https://www.box.com/s/s0m5gs96jd3stuqa7tpu but don't really know what to do with it!
Thanks in advance for your help
 
Upvote 0
Hi

... Linear interpolation between values is fine...

Both input sets of input values, (0.1, 2, 10, 100) and (2, 3, 4, 5, 10, 15, 20, 30, 50, 100) seem that they come out of axes with a logarithmic scale.

If that is the case, maybe you should check if a linear interpolation is adequate for what you need.
 
Upvote 0
I'm not sure how the data was produced, but interpolation between adjacent numbers is permitted. Thanks for your input though

Hi



Both input sets of input values, (0.1, 2, 10, 100) and (2, 3, 4, 5, 10, 15, 20, 30, 50, 100) seem that they come out of axes with a logarithmic scale.

If that is the case, maybe you should check if a linear interpolation is adequate for what you need.
 
Upvote 0
You have already a solution. If you think if fits your needs then I'm glad you have your problem solved.

... interpolation between adjacent numbers is permitted....

Remark: my question is not if interpolation between adjacent numbers is permitted, it's what kind of interpolation you should use. At a first glance it does not seem to me that linear interpolation is adequate, but, as I said, if you think its results are satisfactory then that's your decision to make.
 
Upvote 0

Forum statistics

Threads
1,216,105
Messages
6,128,859
Members
449,472
Latest member
ebc9

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