+ Reply to Thread
Results 1 to 4 of 4

Averaging daily data to monthly

  1. #1
    Registered User
    Join Date
    11-12-2012
    Location
    Ajman, UAE
    MS-Off Ver
    Excel 2010
    Posts
    2

    Averaging daily data to monthly

    Hello People,

    I am looking for some help on the attached dataset. I am trying to average out the figures in the "Data" sheet to give me a monthly average in the "Monthly average" sheet.

    I tried out the Averageif function and the sumif / counif functions, albeit unsuccessfully. The problem seems to be with the dataset which has gaps in between...unfortunately there isnt much that I can do about it.

    Any help would be of use and ofcourse very much appreciated.

    Thanks

    KS
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Averaging daily data to monthly

    Edit: Nevermind, just saw the second sheet. Oops
    Last edited by ChemistB; 11-13-2012 at 10:22 AM.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Averaging daily data to monthly

    Try this formula in Monthly Averages B2

    =IFERROR(SUMPRODUCT(Data!B2:B1000, --(MONTH(Data!$A2:$A1000) = MONTH($A2)), --(YEAR(Data!$A2:$A1000)=YEAR($A2)))/SUMPRODUCT(--(ISNUMBER(Data!B2:B1000)), --(MONTH(Data!$A2:$A1000) = MONTH($A2)), --(YEAR(Data!$A2:$A1000)=YEAR($A2))),"")
    Can be dragged across and down
    Does that work for you?
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-12-2012
    Location
    Ajman, UAE
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Averaging daily data to monthly

    This works swell for me...much appreciated...thanks

    KS

+ 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