+ Reply to Thread
Results 1 to 8 of 8

Linear interpolation of hourly data into 15 minute data

  1. #1
    Registered User
    Join Date
    09-27-2018
    Location
    India
    MS-Off Ver
    2013
    Posts
    14

    Linear interpolation of hourly data into 15 minute data

    I have my hourly date in column "B" and my 15 minute time in column "I". I have my wind data corresponding to column "B" in column "E" and I need to copy the value from column "E" to column "J" corresponding to the same date and time in column "B". I need this condition, so that i can use linear interpolation later and convert the hourly data into 15 minute data. {=IF(B2:B985=I2:I3912,INDEX(B2:E985,MATCH(I2,B2:B985,0),4))} i tried this formula to do the above mentioned action and got my first value correctly, but as i drag it to the entire column it does not respond as i wanted.
    Attached Files Attached Files
    Last edited by anupsubudhi; 09-28-2018 at 07:02 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Linear interpolation of hourly data into 15 minute data

    It would help if you attached a sample Excel workbook.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post. Don't try to use the Paperclip icon, as it is broken on this forum.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    09-27-2018
    Location
    India
    MS-Off Ver
    2013
    Posts
    14

    Re: Linear interpolation of hourly data into 15 minute data

    Thanks,
    i want to attach the workbook but the paperclip icon was not working. U can see the sheet named Karnataka where i was continuing my work.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Linear interpolation of hourly data into 15 minute data

    Try this in J2:

    =IFERROR(INDEX(E:E,MATCH(I2,$B:$B,0)),INDEX(E:E,MATCH(I2,$B:$B,1))+MOD(ROWS($1:1)-1,4)*(INDEX(E:E,MATCH(I2,$B:$B,1)+1)-INDEX(E:E,MATCH(I2,$B:$B,1)))/4)

    For the 15-min intervals it takes 1/4, 2/4 and 3/4 of the difference between the 6:30 and 7:30 data, giving you a linear interpolation between those values.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    09-27-2018
    Location
    India
    MS-Off Ver
    2013
    Posts
    14

    Re: Linear interpolation of hourly data into 15 minute data

    thanks a lot pete,
    its working..

    anup

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Linear interpolation of hourly data into 15 minute data

    Glad to hear that - thanks for the rep.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread and mark this thread as SOLVED.

    Pete

  7. #7
    Registered User
    Join Date
    09-27-2018
    Location
    India
    MS-Off Ver
    2013
    Posts
    14

    Re: Linear interpolation of hourly data into 15 minute data

    Hey pete,
    the above formula for bi-linear interpolation seems to work well till now but when i used it today it gives the answer in decreasing order as if the second "y" value is given as zero.see the sheet 2 and the concerned columns are "m","n","o".

    thank you
    Attached Files Attached Files

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Linear interpolation of hourly data into 15 minute data

    I can't see any Sheet2, and there is no date column or even formula in your Sheet1, so I don't know how you have arrived at those numbers.

    Pete

+ 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] Reducing one minute data to hourly average??
    By NikRaven in forum Excel General
    Replies: 9
    Last Post: 11-03-2021, 06:32 AM
  2. [SOLVED] Linear interpolation with unevenly spaced data
    By WE5T in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-17-2021, 12:09 AM
  3. [SOLVED] Can I create 15 minute data from an hourly dataset?
    By MF2680 in forum Excel General
    Replies: 8
    Last Post: 03-20-2015, 08:54 AM
  4. Replies: 1
    Last Post: 03-06-2013, 09:37 AM
  5. Help required with per minute data into half hourly data?
    By technico in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-20-2013, 07:32 PM
  6. hourly summary from 5-minute data
    By Friggens in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-06-2011, 04:35 AM
  7. Replies: 1
    Last Post: 11-08-2010, 02:15 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