+ Reply to Thread
Results 1 to 5 of 5

averageifs exclude blanks and zeros

  1. #1
    Forum Contributor
    Join Date
    07-23-2019
    Location
    San Antonio, Texas
    MS-Off Ver
    Office 365
    Posts
    141

    averageifs exclude blanks and zeros

    good afternoon,

    I am trying to use an "averageifs" formula, but exclude any blanks or zeros from the average. I have tried using the following:

    AVERAGEIFS('Jan-Dec 12'!Y:Y,'Jan-Dec 12'!C:C,Counts!$K$1,'Jan-Dec 12'!AE:AE,Counts!$M$1,"<>0"). I keep getting a "too few arguments" message.

    Attached is the workbook I am using - see the "Counts" Tab, column G

    Can someone please show me what I am doing wrong.

    I appreciate the help!

    Kind Regards,

    Paula
    Attached Files Attached Files

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: averageifs exclude blanks and zeros

    Add one more criteria to exclude zero:

    =AVERAGEIFS('Jan-Dec 12'!Y:Y,'Jan-Dec 12'!C:C,Counts!$K$4,'Jan-Dec 12'!AE:AE,Counts!$M$1,'Jan-Dec 12'!Y:Y,"<>0")

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: averageifs exclude blanks and zeros

    To avoid K and M columns you could use:

    =IF(F2="","",AVERAGEIFS('Jan-Dec 12'!Y:Y,'Jan-Dec 12'!C:C,LOOKUP(2,1/($E$1:$E2<>"YTD Avg Efficiency:")/ISTEXT($E$1:$E2),$E$1:$E2),'Jan-Dec 12'!AE:AE,F2,'Jan-Dec 12'!Y:Y,"<>0"))

    (Make sure to enter values in E column and then you can remove K and M)

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: averageifs exclude blanks and zeros

    Or replace in 'Jan-Dec 12'!Y:Y the zeros with blanks, because blanks are excluded automaticly.

  5. #5
    Forum Contributor
    Join Date
    07-23-2019
    Location
    San Antonio, Texas
    MS-Off Ver
    Office 365
    Posts
    141

    Re: averageifs exclude blanks and zeros

    thank you both soooo much - i was able to use either of the two formulas to make this work. I greatly appreciate your help and time!

+ 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] Averageifs ignoring blanks and zeros
    By Ju1cy in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-02-2023, 08:11 AM
  2. [SOLVED] Count Cells Excluding Blanks, Zeros, and Formulas Returning Zeros
    By Saradomin in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-10-2022, 05:14 AM
  3. [SOLVED] Averageifs exclude zero from
    By hkaric in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-20-2021, 05:04 AM
  4. AVERAGEIFS (exclude 0 and greater than)
    By olga6542 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-15-2020, 01:31 AM
  5. Minimum or Small Formula Help exclude zeros, nth term, multiple zeros
    By excelas88 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-21-2016, 02:43 PM
  6. [SOLVED] AVERAGEIFS and Skipping Zeros
    By zanshin777 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-09-2016, 06:11 PM
  7. Replies: 1
    Last Post: 07-19-2012, 05:09 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