+ Reply to Thread
Results 1 to 4 of 4

Average Cells Based on Month and Other Criteria

  1. #1
    Registered User
    Join Date
    02-28-2013
    Location
    U.S.
    MS-Off Ver
    Excel 2007
    Posts
    4

    Average Cells Based on Month and Other Criteria

    Hey all!

    I'm sure I'm missing something obvious, but I can't get this average to work. I want to do an average of some cells based on their month and another criteria. I attached an example of what I was trying to do. I was trying to get an average of column C for the month of January based on Apples or Oranges. Can anyone shed some light?


    Apples&Oranges.xlsx

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Average Cells Based on Month and Other Criteria

    hi kr11, welcome to the forum. in Excel 2007, you can try AVERAGEIFS in G3:
    =AVERAGEIFS($C$1:$C$36,$A$1:$A$36,1,$D$1:$D$36,F3)

    in older versions:
    =SUMPRODUCT(($A$1:$A$36=1)*($D$1:$D$36=F3),$C$1:$C$36)/SUMPRODUCT(($A$1:$A$36=1)*($D$1:$D$36=F3))

    extend the range as you desire

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    02-28-2013
    Location
    U.S.
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Average Cells Based on Month and Other Criteria

    Hey benishyiryo! Thanks for the welcome!

    I forgot to mention, the problem is that the data is updated automatically and very frequently. I was hoping to use a formula that would update the averages automatically, instead of me going in and readjusting the ranges every day. Any thoughts? Thanks!

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Average Cells Based on Month and Other Criteria

    this will work for Month 1
    =AVERAGEIFS($C$1:$C$36,$A$1:$A$36,1,$D$1:$D$36,F3)

    change the 1 to a 2 for feb
    or use another cells to put the 1 or 2 into

+ 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