+ Reply to Thread
Results 1 to 5 of 5

AVERAGEIFS Function using 2 criterias?

  1. #1
    Registered User
    Join Date
    07-24-2015
    Location
    San Jose, Costa Rica
    MS-Off Ver
    2013
    Posts
    15

    AVERAGEIFS Function using 2 criterias?

    Hi All,

    I am trying to average large amounts of data (daily prices for 5 years) by year and month. I see the AVERAGEIFS function is limited to using 1 crieria to sort and average the data. i.e month or year

    I was wondering if there was a function or a work around to first look at the data by year and then average by month. Maybe combining formulas??

    I have organized the data appropriately in the spreadsheet attached.

    Many Thanks to All!
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: AVERAGEIFS Function using 2 criterias?

    I see the AVERAGEIFS function is limited to using 1 crieria to sort and average the data. i.e month or year
    Not so, averageifS() can take multiple criteria
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: AVERAGEIFS Function using 2 criterias?

    perhaps this?
    =AVERAGEIFS($F:$F,$B:$B,I$17,$C:$C,I18)

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: AVERAGEIFS Function using 2 criterias?

    Here is that same formula without the need for the helper colimns in B:D...
    =AVERAGEIFS(F:F,$E:$E,">="&DATE(I$17,I18,1),$E:$E,"<"&EDATE(DATE(I$17,I18,1),1))

  5. #5
    Registered User
    Join Date
    07-24-2015
    Location
    San Jose, Costa Rica
    MS-Off Ver
    2013
    Posts
    15

    Re: AVERAGEIFS Function using 2 criterias?

    Thanks a lot Ford it worked! Really appreciate your help...

+ 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 help with averageifs function - keeps returning #DIV/0
    By JAWilliams in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-26-2015, 01:38 AM
  2. [SOLVED] Help with AVERAGEIFS and OR function
    By malleat1 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 12-03-2014, 10:30 AM
  3. AVERAGEIFS Function Problem
    By SpaceOccupyMars in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-16-2014, 09:54 PM
  4. [SOLVED] Averageifs Countifs function
    By vandan_tanna in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-16-2013, 11:14 AM
  5. [SOLVED] Is AVERAGEIFS the correct function to use?
    By IrrepressibleXL in forum Excel General
    Replies: 7
    Last Post: 03-27-2012, 07:28 PM
  6. Removing #Div/0! from AVERAGEIFS function
    By Oqualli in forum Excel General
    Replies: 3
    Last Post: 06-15-2011, 11:55 AM
  7. Excel 2007 : Averageifs function
    By SDruley in forum Excel General
    Replies: 2
    Last Post: 05-13-2009, 10:43 PM

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