+ Reply to Thread
Results 1 to 9 of 9

Splitting hourly data into 1/4 hourly data

  1. #1
    Registered User
    Join Date
    11-09-2012
    Location
    Preston, England
    MS-Off Ver
    Excel 2007
    Posts
    6

    Splitting hourly data into 1/4 hourly data

    Hi,

    I am working with some flow data which I have in hourly time steps. I want to split this into 15 minute time steps with some simple linear interpolation between the hourly values. I know I could work down the data interpolating between each hour, but is there a faster way? The rate of increase/decrease in flow changes each hour. Is there a better way to set out my data to do this? The data set is quite large and at the moment is set up like this:

    Time Flow
    0900 3.4
    0915
    0930
    0945
    1000 5.2
    1015
    1030
    1045
    1100 6.0

    Thanks for any help

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Splitting hourly data into 1/4 hourly data

    Do you mean like this:
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-09-2012
    Location
    Preston, England
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Splitting hourly data into 1/4 hourly data

    Thank you, this is exactly what I wanted.

    Please could you try and explain the formula you have used with words? Just so I can understand what excel is doing.

    Thanks again

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Splitting hourly data into 1/4 hourly data

    Now when I try to analize it for you I see that this is not good approach because it works only in ascending order of values in B column...
    Need to take a closer look.

  5. #5
    Registered User
    Join Date
    11-09-2012
    Location
    Preston, England
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Splitting hourly data into 1/4 hourly data

    ahh yes, the data in the 2nd column can go up or down

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Splitting hourly data into 1/4 hourly data

    This should do a trick.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by zbor; 11-09-2012 at 06:33 AM.

  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Splitting hourly data into 1/4 hourly data

    Explanation:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    this part of the formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    will take a step between two values. Notice that it always need to be every 4th cell (that's why table can not start before 4th row) and all other values must be blank. (This is very specific issue, it's important to tell if you have some other requirements).

    Now, when you got a step (+0.45 in first part, -1.8 in second) you need to add it to the previous value (C4) unless B5 already has a value (B5="")*.
    If it has a value IF(B5="", will result FALSE and you need to take that value ,B5) as a result.
    Last edited by zbor; 11-09-2012 at 06:34 AM.

  8. #8
    Registered User
    Join Date
    11-09-2012
    Location
    Preston, England
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Splitting hourly data into 1/4 hourly data

    Thank you

    Would it be ok to take out this part of the formula underlined now?

    =IF(B5="",C4+(B5="")*(MAX(B6:B9)-MAX(B2:B5))/4,B5)

  9. #9
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Splitting hourly data into 1/4 hourly data

    Actually it would becase it' remain from earlier approach when I wasn't look at the B5 with IF function.
    now when I already check that B5 is blank then you can leave that part out.
    Nice spotted.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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