+ Reply to Thread
Results 1 to 5 of 5

Help witth "Averageif"

  1. #1
    Registered User
    Join Date
    12-07-2015
    Location
    Cambridge
    MS-Off Ver
    2010
    Posts
    66

    Help witth "Averageif"

    I have the following formulas which I have worked out =AVERAGEIF('2020'!J2:NW117,C1,'2020'!NW2:NW117), however I need it now to exclude any "0" in the calculation range.

    I have tried many different ways but to no avail, any help would be much appreciated

    Thank you

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Help witth "Averageif"

    You need averageIFS. Syntax

    =AVERAGEIFS(D:D,C:C,B1,D:D,"<>0")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    12-07-2015
    Location
    Cambridge
    MS-Off Ver
    2010
    Posts
    66

    Re: Help witth "Averageif"

    Glenn

    It did not like that change, but thanks anyway

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Help witth "Averageif"

    Oh ... I see why, you're averaging a 2D range, not a column!!

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Help witth "Averageif"

    One way:

    =SUMPRODUCT(($C$1:$C$13=B1)*($D$1:$E$13<>0)*$D$1:$E$13)/SUMPRODUCT(($C$1:$C$13=B1)*($D$1:$E$13<>0))
    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] trouble with averageif combined with "<>0" formula, "too few arguments"
    By az1234 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-11-2020, 03:01 PM
  2. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  3. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  4. EXCEL 2003 - Need an "AVERAGEIF" formula to exclude "0" in average
    By kerry0507 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-18-2015, 03:37 PM
  5. AVERAGEIF: Multiple "<>" criterias for a single range
    By AlphaRaveNZ in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-02-2014, 02:59 AM
  6. Use"Averageif" but can't avoid "###########"
    By him0331 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-12-2014, 05:08 AM
  7. [SOLVED] Using a "ColorIndexOfRange" function as criteria in an "averageif" statement
    By ndrobinson in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-16-2012, 03:40 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