+ Reply to Thread
Results 1 to 7 of 7

Linear interpolation problem (15 min data to 10 min data)

  1. #1
    Registered User
    Join Date
    07-04-2012
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Linear interpolation problem (15 min data to 10 min data)

    Hi All,
    First time to post.
    I have a data set of water flow (Q) for every 15 min. I need to interpolate the water flow (Q) to every 10 min.


    I've looked through several forums and tried a few FORECAST, and OFFSET type formulas, but can't seem to make it work.

    Any suggestions for formulas to use? I've attached a sample of the data.
    Thanks so much in advance!
    Attached Files Attached Files

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

    Re: Linear interpolation problem (15 min data to 10 min data)

    I'm not in a position to download your file tonight.

    I've found it easiest to break up linear interpolation into 3 steps.

    1) Locate the interval containing the desired x value. This can usually be accomplished easily using the =MATCH() function.
    2) Use the =INDEX() function to extract the x and y endpoint values for the interval that contains the desired x value.
    3) Interpolate to find y and the desired x value. This can be accomplished using the =TREND() function using the results of the four INDEX() functions from step 2.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Linear interpolation problem (15 min data to 10 min data)

    If you convert your date and time values into a single date/time column and post the file, I'll add a simple interpolation routine for you tomorrow.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    07-04-2012
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Linear interpolation problem (15 min data to 10 min data)

    Thank you MrShorty and shg.

    MrShorty I will try to follow your advice, and post back with questions.

    Shg- I'm reposting the file with time/date in one column. Looking forward to your response tomorrow.
    Thanks again to you both!
    Attached Files Attached Files

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Linear interpolation problem (15 min data to 10 min data)

    See attached.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-04-2012
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Linear interpolation problem (15 min data to 10 min data)

    Thank you so much! It looks great- but please forgive my lack of excel sophistication...I am unable to copy your LInterp function into other spreadsheets and use if over my whole dataset which is huge.
    How do I enable that function in other spreadsheets?

    Thank you so much again!

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Linear interpolation problem (15 min data to 10 min data)

    Do Alt+F11 to open the Visual Basic Editor. In the Project Explorer window (Ctrl+R is it's not visible), drag the module xlInterpolators from the project in the workbook to the project in the other workbook.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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