+ Reply to Thread
Results 1 to 2 of 2

[SOLVED] error message #DIV/0! when using AVERAGE formula for multiple cells

  1. #1
    Registered User
    Join Date
    10-28-2011
    Location
    Minnesota
    MS-Off Ver
    Excel 2007
    Posts
    2

    [SOLVED] error message #DIV/0! when using AVERAGE formula for multiple cells

    Getting error message #DIV/0! when using the following formula =AVERAGE(B6:I6).
    How do I correct when some cells have a zero?
    Last edited by ingie424; 11-02-2011 at 03:18 PM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Correcting error message #DIV/0! when using AVERAGE formula for multiple cells

    You will only get an error when no cells have numbers

    You can avoid that with IFERROR to return a blank

    =IFERROR(AVERAGE(B6:I6),"")

    ....but that will still include zeroes in the average, if you want to average without zeroes use AVERAGEIF instead, i.e.

    =IFERROR(AVERAGEIF(B6:I6,">0"),"")
    Audere est facere

+ 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