+ Reply to Thread
Results 1 to 7 of 7

How to create daily average from hourly data

  1. #1
    Registered User
    Join Date
    07-13-2011
    Location
    london, england
    MS-Off Ver
    Excel 2007
    Posts
    3

    How to create daily average from hourly data

    Hi guys,

    I'm looking at river levels in an area where I may buy property. The data given to me by the local council provides a reading of the river water level every 15 minutes (for several years). If possible I want to create daily averages and plot them in a graph so that I can see the average level for each day.

    I've attached a sample of the data running over a few days (The entire data set covers a decade). I need a function for the "average volume" column so that I won't have to enter the data manually thousands of times.

    Any help would be greatly appreciated

    An Excel Novice
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: How to create daily average from hourly data

    I've used the subtotal function of excel to find the average for each day. Look at the attached.

    Alan
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: How to create daily average from hourly data

    Two options, one is very quick and the other uses an array formula, which could be slow with decades worth of data.

    The formula option: Array formula (confirmed using CTRL+SHIFT+ENTER, not just ENTER):

    =AVERAGE(IF(INT($A$2:$A$1000)=F2,$B$2:$B$1000))

    Change the reference to row 1000 to your last used row.

    Other Option: Pivot Table

    Select your data in columns A:B and click Insert > PivotTable. Drag the DateTime field to the Row Labels area. Drag the SG field to the Values area. Right-click on any of the DateTime entries and choose Group... and select Days so it is highlighted (you may need to de-select any other options). Right-click in the Values area of the pivot table and choose Summarize Data By.. > Average.

    That should do the trick.

  4. #4
    Registered User
    Join Date
    07-13-2011
    Location
    london, england
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: How to create daily average from hourly data

    Alan

    Many many thanks for your help. Your assistance has been really useful for me!

  5. #5
    Registered User
    Join Date
    07-13-2011
    Location
    london, england
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: How to create daily average from hourly data

    Paul

    - Many thanks - I'm now beginning to get great results with the pivot table.... so much so that my computer is complaining about too much unique data input!

    Thanks again Alan and Paul

  6. #6
    Registered User
    Join Date
    01-27-2015
    Location
    Dubai
    MS-Off Ver
    2007
    Posts
    1

    Re: How to create daily average from hourly data

    Dear Paul

    Thanks a million for you help

  7. #7
    Registered User
    Join Date
    10-15-2014
    Location
    Canada
    MS-Off Ver
    Mac
    Posts
    1

    Re: How to create daily average from hourly data

    Just want to say thanks for the wealth of information! I have been doing them manually ever since

+ 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