+ Reply to Thread
Results 1 to 4 of 4

Proper use of ISERROR() formula

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-05-2007
    Location
    Arlington, TX
    MS-Off Ver
    Office 2010
    Posts
    164

    Proper use of ISERROR() formula

    I've got myself all confused using the ISERROR() formula. Essentially all I want to do is average cells B5:B16, and ignore any cells that are returning an error so I can get a correct average. What exactly is the proper way to do this?

  2. #2
    Forum Contributor
    Join Date
    04-05-2007
    Location
    Arlington, TX
    MS-Off Ver
    Office 2010
    Posts
    164

    Re: Proper use of ISERROR() formula

    You know, I need to stop asking questions so quickly.

    This worked for me: =SUMIF(B5:B16,">0")/COUNTIF(B5:B16,">0")

  3. #3
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Proper use of ISERROR() formula

    Hi,

    ISERROR will return True or False. IFERROR will let you add a second argument if it is TRUE (like "").

    This will tell you if there are any errors
    IF(ISERROR(B5:B16),"No errors found","Errors found")

    This will average all of the cells with no errors
    {=AVERAGE(IFERROR(B2:B16,""))}
    Entered as Ctrl+Shift+Enter (not Enter only)

    Hope this helps.

    abousetta

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Proper use of ISERROR() formula

    How about

    =AVERAGEIF(B5:B16,">0")

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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