+ Reply to Thread
Results 1 to 7 of 7

Linear Interpolation in Excel

  1. #1
    Registered User
    Join Date
    06-02-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    75

    Linear Interpolation in Excel

    Hi,

    I could perform a linear interpolation for data represented in X & Y.

    It works fine except for one limitation, which is that it provides only one value, while the data could have 2 possible values.

    I appreciate any help in modifying the formula to work as intended... Sample file is attached Thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Linear Interpolation in Excel

    Is this the same as your other thread?

    https://www.excelforum.com/excel-for...rpolation.html

    If so, this duplicate will be closed.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Linear Interpolation in Excel

    Please try

    =FORECAST(F2,LARGE(C2:C11,MATCH(F2,B2:B11,1)+{0;1}),SMALL(B2:B11,MATCH(F2,B2:B11,1)+{0;1}))
    and
    =FORECAST(F2,LARGE(C11:C20,MATCH(F2,B11:B20,-1)+{0;1}),LARGE(B11:B20,MATCH(F2,B11:B20,-1)+{0;1}))

    confirm with Ctrl+Shift+Enter
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-02-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    75

    Re: Linear Interpolation in Excel

    @AliGW
    No it is not the same... It is completely different problem!

  5. #5
    Registered User
    Join Date
    06-02-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    75

    Re: Linear Interpolation in Excel

    Thanks Bo_Ry!

    It works excellent with 99% of the cases, except for two minor things:

    - If I try with "0", I get only one value, and error in the other

    - I see the formulas is hard coded for two ranges within the dataset; 2:11, and 11:20 presumably because row 11 is happened to be the pivot point. Can we avoid this, and make the formulas to work dataset size specifying the range?

    Thanks again, and really appreciated your help!

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Linear Interpolation in Excel

    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-02-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    75

    Re: Linear Interpolation in Excel

    Thanks Bo_Ry... works great!

+ 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. Linear Interpolation every nth row in a column in Excel
    By yaro_yaro in forum Excel General
    Replies: 7
    Last Post: 01-21-2020, 01:36 PM
  2. [SOLVED] How to perform a linear interpolation in Excel
    By TRT in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-17-2019, 10:29 AM
  3. [SOLVED] Does Excel have a linear interpolation function?
    By dlamoure in forum Excel General
    Replies: 2
    Last Post: 06-06-2017, 02:17 AM
  4. Replies: 4
    Last Post: 04-06-2017, 03:00 AM
  5. Interpolation, non linear. Need help please.
    By traumerei1838 in forum Excel General
    Replies: 8
    Last Post: 08-12-2015, 01:04 AM
  6. How to use the Linear Interpolation Formula in Excel 2010
    By emmanuelsekimpi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-09-2013, 04:41 AM
  7. linear interpolation function in excel
    By tskoglund in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-09-2005, 11:05 PM

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