+ Reply to Thread
Results 1 to 2 of 2

Interpolation

  1. #1
    Registered User
    Join Date
    03-31-2008
    Posts
    17

    Interpolation

    I have been trying to interpolate between a column of X values (ascending, from 0 to +ve) and a column of Y values (descending, from +ve to -ve). I can't seem to get this forumla to work

    X values= range X. Y values= range Y.

    Cell A1 - input value for Y-location
    Cell B1 - interpolated value of X
    Cell C1 - index value (used to shorten interpolation formula)

    Cell C1 formula checks the order of X-table and finds the index of closest to input value:

    =MATCH(A1,Y,IF(ISNA(LOOKUP(A1,Y)),-1,1))

    Cell B1 formula performs linear interpolation:

    =INDEX(X,C1)+(A1-INDEX(Y,C1))/(INDEX(Y,C1+1)-INDEX(Y,C1))*(INDEX(X,C1+1)-INDEX(X,C1))

    but it does work if I sort the Y values to ascending order, from -ve to +ve, so that the X values are now descending. I gather this is a pretty standard forumla used for interpolation. How can I alter it so I don't have to sort my Y values?

    Thanks

  2. #2
    Registered User
    Join Date
    06-29-2007
    Location
    Edmonton
    MS-Off Ver
    Excel 365
    Posts
    9
    Download XNUMBERS 5.6 from the Internet. It is for free and it includes a function called PolyInterp

    David

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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