+ Reply to Thread
Results 1 to 6 of 6

AVERAGEIFS with multiple criteria

  1. #1
    Forum Contributor
    Join Date
    10-15-2009
    Location
    Broooklyn, NY
    MS-Off Ver
    Excel 2016
    Posts
    207

    AVERAGEIFS with multiple criteria

    I need to calculate the average with the following conditions
    1. I need to exclude 0 or blank cells when calculating the average
    2. I need to calculate average for values that contains Silk (Silk, Silk/Denim,Cotton/Silk)

    Can you help?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: AVERAGEIFS with multiple criteria

    To get the Average for Sales 18 (Column C), you could try:
    =AVERAGEIFS(C2:C7,A2:A7,"*Silk*",C2:C7,">"&0)

  3. #3
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: AVERAGEIFS with multiple criteria

    According to your table, and you have 3 criteria on A11 to A13, and I just assume you need to average column C, put this on C11 and entered as array formula:

    =AVERAGE(AVERAGEIFS(C2:C7;A2:A7;A11:A13;C2:C7;"<>"))

    or you need regular formula:

    =AVERAGE(AVERAGEIF(A2:A7;{"Silk";"Silk/Deim";"Cotton/Silk"};C2:C7))
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    10-15-2009
    Location
    Broooklyn, NY
    MS-Off Ver
    Excel 2016
    Posts
    207

    Re: AVERAGEIFS with multiple criteria

    I need average for all the years for the Silk and I need to exclude 0. So the range is C2:D7

  5. #5
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: AVERAGEIFS with multiple criteria

    Hope this works
    Attached Files Attached Files

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: AVERAGEIFS with multiple criteria

    Please try

    =AVERAGE(IF(ISNUMBER(SEARCH("Silk",A2:A7))*C2:D7,C2:D7))

    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    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)

Similar Threads

  1. [SOLVED] Help with AVERAGEIFS with multiple criteria
    By dennis.pak in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-03-2019, 11:38 AM
  2. averageifs with multiple criteria
    By cchi3k in forum Excel General
    Replies: 2
    Last Post: 05-12-2017, 06:14 AM
  3. [SOLVED] Macro for AverageIFS, with multiple criteria in the same criteria range
    By Faridwahidi in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 05-24-2014, 01:13 AM
  4. [SOLVED] AVERAGEIFS with multiple criteria
    By bibu in forum Excel General
    Replies: 5
    Last Post: 03-22-2014, 03:28 PM
  5. AVERAGEIFS(), with multiple criteria
    By Jkember in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-21-2014, 06:33 PM
  6. AVERAGEIFS Multiple Criteria
    By qhoney in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-05-2014, 03:58 PM
  7. [SOLVED] Averageifs with multiple criteria
    By jbillyo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-02-2013, 04:13 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