+ Reply to Thread
Results 1 to 4 of 4

Average daily data by month

  1. #1
    Registered User
    Join Date
    11-03-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2010
    Posts
    9

    Average daily data by month

    I have a workbook with two sheets - DATA and SUMMARY.
    DATA has two columns - date and data_value. Data will be added to this sheet on a regular basis
    SUMMARY has two columns - month and average
    In the column for average I would like a formula to calculate the average of data_value for each month without having to manually determine the range for the particular month.
    Attached Files Attached Files
    Last edited by aussie_sox; 01-16-2009 at 06:28 PM.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Hi and welcome to the board,
    one possibility is using a Pivot Table with a Dynamic range
    Does the attached file fill your needs ?
    Attached Files Attached Files
    Last edited by arthurbr; 01-15-2009 at 09:40 AM.

  3. #3
    Registered User
    Join Date
    11-03-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2010
    Posts
    9
    Arthurbr,

    Thanks for your help

    The results of the average for the month are used elsewhere in my actual application so I prefer to NOT use a Pivot table.

    In the spreadsheet you provided an array formula as well as the pivot table.

    I've modified the array formula from:
    {=AVERAGE(IF(MONTH(data!$A$2:$A$66)=MONTH(A4),data!$B$2:$B$66,FALSE))}
    to
    {=AVERAGE(IF(MONTH(data!$A$2:$A$999)&YEAR(data!$A$2:$A$999)=MONTH(A4)&YEAR(A4),data!$B$2:$B$999,FALSE))}
    so that as I add more data over the next year or so the range will be large enough to not need updating AND the average will only be for each month of each year.

    SOLVED !!!
    Last edited by aussie_sox; 01-16-2009 at 06:32 PM. Reason: correct the formula

  4. #4
    Registered User
    Join Date
    06-26-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Average daily data by month

    aussie_sox and Arthurbr,

    This was very useful. I had a similar data set and issues. Thanks for the posts!

+ 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