+ Reply to Thread
Results 1 to 3 of 3

daily averages of hourly data

  1. #1
    Registered User
    Join Date
    06-28-2011
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2010, Excel 2011 for mac
    Posts
    82

    daily averages of hourly data

    Hi

    I have some data with hourly averages. I would like to find the daily average in the next column.

    I've uploaded an example file.

    In column G in the uploaded file I would like to list each date once, and then in column H the 24 hour average from the date shown in G.

    I'm thinking this can be a two step formula - so first the date and then in column H a new formula using =averageifs(...), taking the average if the date meets the criteria. Not sure this is the smartest way to do it though.

    Note that some of the measurements are #NA. This is not a mistake.

    Unfortunately using VBA is not really an option. This has to be done by formulas. Any help is very much appreciated,
    Kbka
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: daily averages of hourly data

    In G2
    =DATE(D2,C2,B2)

    In H2
    =AVERAGEIFS(E:E,D:D,YEAR(G2),C:C,MONTH(G2),B:B,DAY(G2))

    I would suggest replacing the #NA with a blank "" by using the IFERROR formula.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    06-28-2011
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2010, Excel 2011 for mac
    Posts
    82

    Re: daily averages of hourly data

    Great! thank you

+ 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