+ Reply to Thread
Results 1 to 11 of 11

Converting half hourly data to hourly data

  1. #1
    Registered User
    Join Date
    07-13-2017
    Location
    Zimbabwe
    MS-Off Ver
    2013
    Posts
    28

    Converting half hourly data to hourly data

    Hi all

    I have some data recorded at 30-minute intervals and I would like to convert to hourly values. The raw data is contained in columns A, B and C in the attachment. The output should take the form indicated in columns G, H and I where column H contains hourly total Radiation and column I contains hourly average Temperature. The dates in column G have been created manually but I need a way of doing it using the dates in column A. How do I use excel to get such an output?

    Regards

    Joe
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Converting half hourly data to hourly data

    Try these:

    G2 =MIN(A:A)+(ROWS($1:1)-1)/24

    H2 =SUMIFS(B:B,A:A,">="&G2,A:A,"<="&G2+TIME(0,30,0))

    I2=AVERAGEIFS(C:C,A:A,">="&G2,A:A,"<="&G2+TIME(0,30,0))
    Last edited by 63falcondude; 10-22-2018 at 02:41 PM.

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Converting half hourly data to hourly data

    You can do this in a Pivot Table as well.

    Drag TIMESTAMP into ROWS, Radiation into VALUES, Temperature into VALUES (change from Sum to Average) then group TIMESTAMP by Days and Hours.

  4. #4
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    536

    Re: Converting half hourly data to hourly data

    Try formulas:
    G2
    Please Login or Register  to view this content.
    H2
    Please Login or Register  to view this content.
    I2 array formula
    Please Login or Register  to view this content.
    Regards.
    Last edited by maras_mak; 10-22-2018 at 03:04 PM.

  5. #5
    Registered User
    Join Date
    07-13-2017
    Location
    Zimbabwe
    MS-Off Ver
    2013
    Posts
    28

    Re: Converting half hourly data to hourly data

    Thanks 63falcondude, both approaches work perfect.

  6. #6
    Registered User
    Join Date
    07-13-2017
    Location
    Zimbabwe
    MS-Off Ver
    2013
    Posts
    28

    Re: Converting half hourly data to hourly data

    Thanks maras_mak. However it worked for columns G and H. For column I, the result is 18.83667523 in column I2 which seems to be incorrect if you look at the first few raw data entries. In addition, when I drag the formula down, all cells are populated with an error massage #VALUE!
    but thanks for the effort and for your time.

  7. #7
    Registered User
    Join Date
    07-13-2017
    Location
    Zimbabwe
    MS-Off Ver
    2013
    Posts
    28

    Re: Converting half hourly data to hourly data

    Thanks maras_mak. However it worked for columns G and H. For column I, the result is 18.83667523 in column I2 which seems to be incorrect if you look at the first few raw data entries. In addition, when I drag the formula down, all cells are populated with an error massage #VALUE!
    But thanks for the effort and for your time.

  8. #8
    Forum Contributor
    Join Date
    04-30-2015
    Location
    The Netherlands
    MS-Off Ver
    office 365
    Posts
    195

    Re: Converting half hourly data to hourly data

    That is probably cause you didn't enter it as an Array formula.

    Array formula's are confirmed with CTRL+SHIFT+ENTER instead if just ENTER. You will see if it worked if you see these curly brackets "{" "}" (do not add these manually, it doesn't work)
    You only have to do this to the first cell you enter it into, when you drag it down the array confirmation drags down with it.
    Remember to mark as Solved and give out rep.

  9. #9
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Converting half hourly data to hourly data

    Happy to help. Thanks for the rep!

  10. #10
    Registered User
    Join Date
    07-13-2017
    Location
    Zimbabwe
    MS-Off Ver
    2013
    Posts
    28

    Re: Converting half hourly data to hourly data

    Thanks FerdyHar

  11. #11
    Registered User
    Join Date
    03-24-2020
    Location
    Adelaide
    MS-Off Ver
    2016
    Posts
    4

    Re: Converting half hourly data to hourly data

    Quote Originally Posted by 63falcondude View Post
    Try these:

    G2 =MIN(A:A)+(ROWS($1:1)-1)/24

    H2 =SUMIFS(B:B,A:A,">="&G2,A:A,"<="&G2+TIME(0,30,0))

    I2=AVERAGEIFS(C:C,A:A,">="&G2,A:A,"<="&G2+TIME(0,30,0))

    Hi 63falcondude, when I am doing what you have shown for column G2, mine is showing 0101/1900 for dates. Times are getting consolidated into hourly format though. Please have a look at the column K in the attached sheet and could you suggest a solution please?


    Many Thanks
    Attached Files Attached Files

+ 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. Replies: 2
    Last Post: 05-31-2018, 06:18 PM
  2. Converting Half-hourly data into average daily data
    By TommyHayes1989 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-24-2018, 11:19 AM
  3. How to graph: 3-years electrical useage in half-hourly data
    By Moorhouse in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-12-2017, 06:36 PM
  4. Replies: 0
    Last Post: 02-17-2014, 06:34 AM
  5. Plotting Half Hourly Data in Weekly/Month Format
    By craigj21 in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 09-06-2013, 09:43 AM
  6. Aggregating timestamped data up to half hourly totals
    By andykent99 in forum Excel General
    Replies: 4
    Last Post: 02-24-2013, 01:10 PM
  7. Replies: 10
    Last Post: 04-10-2012, 11:04 AM

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