+ Reply to Thread
Results 1 to 3 of 3

Average if data is in the same month of the same year

  1. #1
    Forum Contributor
    Join Date
    05-24-2014
    MS-Off Ver
    Microsoft Office 2013
    Posts
    113

    Average if data is in the same month of the same year

    So I have some data that I would like to have average only if that data was entered in the same month and year as specified in another cell. Does anyone know how to do this? What I have tried so far is
    Please Login or Register  to view this content.
    RenewalMonths is a dynamic range where each cell in the range shows the month of the date in that row.
    RenewalYears is the same but for the years.
    RenewalOverallStuff is a dynamic range where I would need to average the data that meets the criteria.
    Last edited by manofcheese; 06-04-2014 at 06:33 PM.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Average if data is in the same month of the same year

    AND doesn't work the way you would think in an array formula..

    Try
    =AVERAGE(IF(MONTH(G2)=RenewalMonths,IF(YEAR(G2)=RenewalYears,RenewalOverallStuff,"")))
    or
    =AVERAGE(IF((MONTH(G2)=RenewalMonths)*(YEAR(G2)=RenewalYears),RenewalOverallStuff,""))

    Both entered with CTRL + SHIFT + ENTER

  3. #3
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Average if data is in the same month of the same year

    You could also try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    as a non-array formula
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need formula to average daily data into month and year data
    By phantasm79 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-28-2014, 07:02 PM
  2. If Column A Month and Year = ColumnB Todays Month and Year then send email
    By HACCStaff in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-15-2013, 12:47 AM
  3. average for month, 1/4 year, year
    By miheec in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-10-2012, 06:34 PM
  4. Replies: 2
    Last Post: 03-05-2012, 03:56 PM
  5. Each Item's Most Recent/Month/Half Year Average Price
    By jo3c in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-27-2011, 12:01 PM

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