+ Reply to Thread
Results 1 to 4 of 4

Find y value with f(x,y) and x value using double interpolation in 2d table

  1. #1
    Registered User
    Join Date
    10-25-2014
    Location
    copenhagen, dk
    MS-Off Ver
    Mac 2011
    Posts
    2

    Find y value with f(x,y) and x value using double interpolation in 2d table

    Hi,

    I have a chart which looks like this:

    x\ y 0 1 2
    0 0.01 0.05 0.10
    1 0.02 0.08 0.11 <- f(x,y) values
    2 0.04 0.10 0.14

    In reality it is much bigger, but just a sample. I have a x value and a f(x,y) value and I would like to find the corresponding y value using interpolation.

    For example... if I have x=1.5, f(x,y)=0.5, what is y=?

    I have found double/bilinear/bicubic interpolation macros on the internet for finding f(x,y) with x and y, just need it in reverse now.

    Dave

  2. #2
    Valued Forum Contributor
    Join Date
    04-09-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Find y value with f(x,y) and x value using double interpolation in 2d table

    Hi Dave,

    Well not sure, but see the file, with Formula solution in it.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-25-2014
    Location
    copenhagen, dk
    MS-Off Ver
    Mac 2011
    Posts
    2

    Re: Find y value with f(x,y) and x value using double interpolation in 2d table

    Hi misrasomendra,

    Thank you for your help. However in your spreadsheet, there is no interpolation, excel matches the nearest value in the table. For example you provide, x=0.9, f(x,y)=0.09, and excel finds y=1, but if you interpolate properly it should work out to be 1.406.

    Dave

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Find y value with f(x,y) and x value using double interpolation in 2d table

    How well have you understood the solutions you have come across? I would expect that the solution to your double interpolation should be very similar to the solutions you have come across. I expect they look something like:

    1) Using linear interpolation, create a new array or block of cells that tabulates y and f(x,y) at new x.
    2) From this new block of cells, interpolate new f(x,y) from newy.

    In your case, I would expect step 1 to be the same. The only difference in step 2 is that you would be looking for newy at newf(x,y). If you have understood the solutions you have found, then it should be fairly easy to modify one of them to get the result you need. If you have not understood them, then I would suggest first understanding how they perform step 1 ("unilinear" interpolation).

    FWIW, I tend to think that this will be easiest in QuattroPro because you can simply use its built in @LINTERP() function to perform each unilinear interpolation.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Double interpolation
    By T Boucher in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-15-2019, 10:47 AM
  2. Find row number of a value from a table for interpolation
    By develaavi in forum Excel General
    Replies: 1
    Last Post: 02-13-2014, 01:55 AM
  3. Lookup-like FUnction and Double Linear Interpolation-need help
    By jamesdigol in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-28-2013, 04:44 AM
  4. Interpolation to find out the co-ordinates
    By jdbaba in forum Excel General
    Replies: 5
    Last Post: 09-27-2010, 07:37 AM
  5. Replies: 0
    Last Post: 07-24-2008, 02:27 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1