+ Reply to Thread
Results 1 to 5 of 5

Converting monthly data into yearly averages

  1. #1
    Registered User
    Join Date
    06-13-2008
    Posts
    3

    Converting monthly data into yearly averages

    I have a column containing monthly data, and I would like to create a new column that shows just yearly averages. In other words, the first cell in the column would display the average of the first 12, the second cell would display the average of the next 12, and so on.

    Advice?

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Converting monthly data into yearly averages

    You asked to have the formula automatically increment to include
    successive groups of twelve cells.

    With
    B2:b100 containing amounts

    Try this:
    Please Login or Register  to view this content.
    Copy that formula down.

    Note: I typically avoid volatile formulas (like OFFSET) because they
    recalculate whenever any cell in the workbook recalcs. That can
    be a problem in large, sluggish workbooks. If that's an issue with
    your workbook....
    This longer formula is NOT volatile:
    Please Login or Register  to view this content.
    Hopefully, though, your data list includes a column indicating year and month. That would be fairly easy to formulate. Let us know if that's your actual situation and we'll provide a different formula.


    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    06-13-2008
    Posts
    3
    Thank you! I'll give those a try. I'll have to study up on what those functions (index and offset) do. I'm somewhat of a novice compared to most of the folk around here.

  4. #4
    Registered User
    Join Date
    06-13-2008
    Posts
    3
    oh, and yes, I do have a column indicating the year and month. It follows the format: 1959-01, 1959-02, etc.

    Would that simplify things?

  5. #5
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Converting monthly data into yearly averages

    With
    Col_A containing your year-mth ref
    and
    Col_B containing your amounts

    Try this:

    C2: (a year....eg 1959)
    D2: =SUMIF($A$2:$A$1000,C2&"*",$B$2:$B$1000)

    EDITED TO INCLUDE THE FOLLOWING:
    I just realized that you asked for *averages*...not sums.
    Consequently, this calculates the average:
    C2: (a year....eg 1959)
    D2: =SUMIF($A$2:$A$1000,C2&"*",$B$2:$B$1000)/COUNTIF($A$2:$A$1000,C2&"*")


    Does that help?
    Last edited by Ron Coderre; 06-14-2008 at 10:15 AM.

+ 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