+ Reply to Thread
Results 1 to 2 of 2

How to dynamically do a linear interpolation of data in a row with missing values?

  1. #1
    Registered User
    Join Date
    08-25-2017
    Location
    Boston, USA
    MS-Off Ver
    2016
    Posts
    1

    Lightbulb How to dynamically do a linear interpolation of data in a row with missing values?

    I have this data
    Date Data
    8/25/2017 980
    8/24/2017 64
    8/23/2017 593
    8/22/2017 595
    8/21/2017
    8/20/2017
    8/19/2017 794
    8/18/2017 437
    8/17/2017
    8/16/2017
    8/15/2017
    8/14/2017 629

    What if i wanted (794-595)/3 in cell 21st August and 2*(794-595)/3 in cell 22nd August and similarly (629-437)/4 in 17th August, 2*(629-437)/4 in 16th August etc...
    How to do this dynamically without regard to the number of missing values in between

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

    Re: How to dynamically do a linear interpolation of data in a row with missing values?

    I would do the same thing I recommended in this thread: https://www.excelforum.com/excel-gen...wo-points.html

    1) Extract known values/entries into a second table. This table will be used as a lookup table for the linear interpolation.
    2) Compute slope/intercept for each pair of points in the lookup table.
    3) Use lookup functions to get slope and intercept for each point in the main table and compute interpolated values.

    Which step or steps do you get stuck on?
    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. [SOLVED] Linear interpolation with unevenly spaced data
    By WE5T in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-17-2021, 12:09 AM
  2. Type mismatch error when assigning values resulting from a linear interpolation
    By seigna in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2015, 09:01 PM
  3. Replies: 1
    Last Post: 03-06-2013, 09:37 AM
  4. Linear interpolation problem (15 min data to 10 min data)
    By jbsfei in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-05-2012, 05:06 PM
  5. Linear interpolation of large data sets
    By Avren in forum Excel General
    Replies: 16
    Last Post: 04-03-2012, 01:53 PM
  6. Linear interpolation based on hardcoded data pairs?
    By Skywalker in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-20-2011, 06:06 AM
  7. Using Linear Regression to Fill in Missing Values
    By Matty's Dilemma in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-30-2009, 06:56 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