+ Reply to Thread
Results 1 to 3 of 3

Thread: Getting the Average of multiple columns

  1. #1
    Registered User
    Join Date
    12-23-2011
    Location
    pomona, ca
    MS-Off Ver
    Excel 2010
    Posts
    19

    Getting the Average of multiple columns

    Hello all!

    I am trying to get the 5 year average for each month (ie:jan 2007, jan 2008, jan 2009....) I was trying to get a averageif function to work but perhaps i am not familiar with it enough. Any help would be greatly appreciated. Attached is a dummy ws.
    Attached Files Attached Files
    Last edited by tlinton; 01-24-2012 at 07:24 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    MS Office Excel 2007
    Posts
    841

    Re: Getting the Average of multiple columns

    Try this

    put the numbers 1 to 12 from A5 to A16 (these are your months)

    then in B5

    =SUMPRODUCT((MONTH(B$1:AW$1)=A5)*(B$3:AW$3))/SUMPRODUCT(--(MONTH(B$1:AW$1)=A5))

    and copy down to B16

    Looks like it's working...! :-)
    Regards
    Special-K

    I rarely return to a problem once I've answered it so make sure you clearly define what the trouble is.

  3. #3
    Registered User
    Join Date
    12-23-2011
    Location
    pomona, ca
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Getting the Average of multiple columns

    It worked, thanks a lot!!

+ 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.2.0