+ Reply to Thread
Results 1 to 6 of 6

Lookup intermittent value in table and return interpolated value

  1. #1
    Registered User
    Join Date
    05-25-2017
    Location
    raleigh, usa
    MS-Off Ver
    2013
    Posts
    3

    Lookup intermittent value in table and return interpolated value

    I am familiar with the MATCH() and INDEX() functions. Banging my head against the wall on this one. Need to find value of Y given X and table of Z values. X is always on the top row and is not intermittent. The table is Z values. Say I have an X of 20 and a Z of 1000, Y should be interpolated value in between 2.2 and 2.4, see attached spreadsheet. Any help?
    Table of Z Values:
    X
    10 20 30
    Y 2 676 1190 1720
    2.2 605 1070 1550
    2.4 546 959 1400
    2.6 496 872 1280
    2.8 453 796 1170
    3 415 730 1070

    X 20
    Z 1000
    Y = ?

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

    Re: Lookup intermittent value in table and return interpolated value

    First, you should probably be clear on the exact interpolation algorithm you need. Especially in multi-D space, there can be multiple interpolation algorithms.

    Assuming you want "bilinear" interpolation (the most common 3D interpolation algorithm I see on here), this thread discusses a suitable algorithm: https://www.excelforum.com/excel-gen...-in-excel.html

    The main complication in your case is that you want to find Y at a given X and Z. The simplest approach is to do the bilinear interpolation at your best guess for X and Y, then use Solver to (a) set target cell -- the cell calculating Z (b) to a value of -- the desired value for Z (c) by changing -- the value for Y.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Lookup intermittent value in table and return interpolated value

    No spreadsheet attached.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  4. #4
    Registered User
    Join Date
    05-25-2017
    Location
    raleigh, usa
    MS-Off Ver
    2013
    Posts
    3

    Re: Lookup intermittent value in table and return interpolated value

    My apologies, the forum would not let me upload the file. It is a straight linear interpolation. If I could get the two closest Z values for X (1070 and 959) and their associated Y values (2.2 and 2.4), I can do the math. Thanks...

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

    Re: Lookup intermittent value in table and return interpolated value

    If I could get the two closest Z values for X (1070 and 959) and their associated Y values (2.2 and 2.4), I can do the math.
    That part should be a straightforward INDEX(...,MATCH(...),MATCH(...)) function (illustrated in the other thread). Are you familiar with these functions?

  6. #6
    Registered User
    Join Date
    05-25-2017
    Location
    raleigh, usa
    MS-Off Ver
    2013
    Posts
    3

    Re: Lookup intermittent value in table and return interpolated value

    Yes, thank you!

+ 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. INTERMITTENT external table not in expected format
    By carsto in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-07-2017, 01:24 PM
  2. How to calculate interpolated value in a table?
    By sein in forum Excel General
    Replies: 4
    Last Post: 11-23-2014, 07:54 AM
  3. Replies: 0
    Last Post: 08-05-2014, 11:37 AM
  4. [SOLVED] Lookup and return a value from a table
    By snorriorn in forum Excel General
    Replies: 3
    Last Post: 04-04-2014, 05:51 AM
  5. LOOKUP TABLE -blank cell in the table array to return a figure
    By jonnops in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-28-2014, 09:08 AM
  6. Lookup a blank cell in a Lookup table and return a figure.
    By jonnops in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-20-2014, 07:33 AM
  7. Lookup value in a table, return cell below
    By burlywood66 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-25-2013, 11:16 AM

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