+ Reply to Thread
Results 1 to 3 of 3

average IF with errors + 0's

  1. #1
    Registered User
    Join Date
    06-15-2016
    Location
    BC
    MS-Off Ver
    excel 2013
    Posts
    52

    average IF with errors + 0's

    Hello,

    Trying to solve why my formula to average with errors is not adding up to the same number as it would when I use the formula that doesn't account for errors.
    What I had that I need to change (because my table will have errors): =AVERAGEIF(A1:A30, "<>0")

    What I am trying, but it accounts for the 0s, so doesn't return the average I'm looking for: {=AVERAGE(IF(ISNUMBER(A1:A30),A5:A30,"<>0"))}

    Thank you for help in advance!
    Kanuck
    Last edited by Kanuck; 09-09-2016 at 09:39 PM.

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,913

    Re: average IF with errors + 0's

    Try this ...

    =AVERAGE(IF(ISNUMBER(A1:A30)*(A1:A30<>0),A1:A30,""))

    Enter with Ctrl+Shift+Enter.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: average IF with errors + 0's

    Try this array formula**:

    =AVERAGE(IF(ISNUMBER(A1:A30),IF(A1:A30<>0,A1:A30)))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. average formula with no #DIV/0! errors
    By 4GONERS in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-16-2019, 01:25 AM
  2. Ignoring errors when calculating average
    By Excel15 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-20-2014, 03:16 PM
  3. How to avoid #DVI/0! errors and average correctly
    By nsmjc in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-21-2014, 04:23 AM
  4. Replies: 14
    Last Post: 06-14-2013, 09:00 PM
  5. Find average of a column that has errors?
    By asdzc2000 in forum Excel General
    Replies: 1
    Last Post: 03-30-2011, 02:43 PM
  6. Average only cells without errors
    By ben2010 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-06-2011, 04:26 AM
  7. Average excluding #/DIV0! errors?
    By Halberson in forum Excel General
    Replies: 1
    Last Post: 10-10-2008, 01:27 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