+ Reply to Thread
Results 1 to 8 of 8

average column based of month in separate column

  1. #1
    Registered User
    Join Date
    12-11-2011
    Location
    Tasmania, Australia
    MS-Off Ver
    Excel 2011
    Posts
    42

    average column based of month in separate column

    excelpictureforhelp.jpg

    Hello all,
    As you can see in the picture, I want a formula that will average column B based on the month in Column A and place the answer in column F.
    I hope this simple explanation is enough.
    I have researched for the answer but have failed.
    Thank you.
    Last edited by Freddobonanza; 12-11-2011 at 05:31 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,438

    Re: average column based of month in separate column

    You should be able to use AVERAGEIF or AVERAGEIFS to get the result you want.

    You would get a more definitive response, at least from me, if you posted a sample workbook rather than a picture of your worksheet.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    12-11-2011
    Location
    Tasmania, Australia
    MS-Off Ver
    Excel 2011
    Posts
    42

    Re: average column based of month in separate column

    Worksheetforaveragewithmonth.xlsx

    Thank you for your quick response,

    I have been looking at AVERAGEIF & AVERAGEIFS, but am struggling to conjure up a working function that will search for the month I want.

    Attached is excel sheet.

    Thank you
    Attached Images Attached Images

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,438

    Re: average column based of month in separate column

    One way, try:

    F2: =SUMPRODUCT(--(TEXT($A$2:$A$65,"mmmm")=$E2),--(B$2:B$65))/SUMPRODUCT(--(TEXT($A$2:$A$65,"mmmm")=$E2))


    Copy down and across.


    Regards, TMS

  5. #5
    Registered User
    Join Date
    12-11-2011
    Location
    Tasmania, Australia
    MS-Off Ver
    Excel 2011
    Posts
    42

    Re: average column based of month in separate column

    Thank you TMShucks,

    Works a treat!!!

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,438

    Re: average column based of month in separate column

    You're welcome. Thanks for the rep.

    I note that you have different years in the data. Did you want to add all the values for each month regardless of year?


    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  7. #7
    Registered User
    Join Date
    12-11-2011
    Location
    Tasmania, Australia
    MS-Off Ver
    Excel 2011
    Posts
    42

    Re: average column based of month in separate column

    No worries,

    Yes this is the answer I needed.

    Will mark the thread as solved.

    Cheers once again !!!!

  8. #8
    Forum Contributor
    Join Date
    02-22-2011
    Location
    Rhône Alpes, France
    MS-Off Ver
    Excel 2007
    Posts
    201

    Re: average column based of month in separate column

    Hi,
    A solution without code by using a Pivot Table
    Hope this will help
    Best regards
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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