+ Reply to Thread
Results 1 to 3 of 3

Need to calculate monthly averages from daily values

  1. #1
    Registered User
    Join Date
    11-07-2009
    Location
    Ohio, United States
    MS-Off Ver
    Excel 2003
    Posts
    26

    Need to calculate monthly averages from daily values

    Please see attached spreadsheet. I would like to have a formula or macro that computes the values for column B in sheet 2 of my spreadsheet. These values should be monthly averages of the daily values listed in column B of sheet 1. As an example, cell B2 in sheet 2 should = average(sheet1!B2:B23)
    Attached Files Attached Files
    Last edited by smiso24; 07-13-2011 at 01:11 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,202

    Re: Need to calculate monthly averages from daily values

    A PivotTable would be the best way
    Attached Files Attached Files
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

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

    Re: Need to calculate monthly averages from daily values

    This nice long array formula would work, too. Not quite as neat or efficient as a pivot table though.

    =SUMPRODUCT(--(MONTH(Sheet1!$A$2:$A$1000)=MID(A2,FIND(".",A2),3)*100),--(YEAR(Sheet1!$A$2:$A$1000)=LEFT(A2,4)*1),Sheet1!$B$2:$B$1000)/COUNT(IF(MONTH(Sheet1!$A$2:$A$1000)=MID(A2,FIND(".",A2),3)*100,IF(YEAR(Sheet1!$A$2:$A$1000)=LEFT(A2,4)*1,Sheet1!$A$2:$A$1000)))

+ 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