Closed Thread
Results 1 to 3 of 3

#DIV/0! Error when Averaging empty cells

  1. #1
    Registered User
    Join Date
    09-18-2008
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    66

    #DIV/0! Error when Averaging empty cells

    Hi everyone, first time forum user here.
    I have been stumped by this problem for a couple of weeks now and all the research/books I've read, don't help me.

    The problem is:

    I get A $DIV/0! result on cells that are empty, when trying to average the contents of those cells.
    I need to average cells F5, F6, F7 (on sheet 1) without including a zero value, (if I input 0 into the cells I get rid of the error but my average is affected).

    Some cells will be left blank/empty.
    The result is calculated in F9 and then is transferred to sheet 2, cell C2.

    This process then continues down through other similar groups on sheet 1 and then transferred to relevant cells on sheet 2.
    How to overcome the $DIV/0% error in all instances and not affect the overall average?

    Regards,
    Martin

  2. #2
    Forum Contributor
    Join Date
    12-02-2004
    Location
    London
    Posts
    255
    Try the following:-

    =IF(ISERROR(AVERAGE(F5:F7)),0,AVERAGE(F5:F7))

    Replace the 0 with "", if you want the result to also be blank. Note if you do set it to "", then further calculations on the results of the cell (F9) may give errors. To correct this make your cells that reference F9 as follows:-

    =If(F9="",0,xxxxxx) where xxxxxx is your formula.

    Regards

    Gary

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Thread closed duplicate post

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. #DIV/0! Error when Averaging empty cells
    By Lungfish in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-25-2008, 08:00 AM
  2. Average a selection of cells where some contain #DIV/0!
    By jfarlow in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-24-2008, 03:27 AM
  3. searching merged cells
    By chris_mayer in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-30-2006, 11:14 AM
  4. searching for empty cells in a range
    By chris_mayer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-28-2006, 07:23 AM
  5. Copy a formula to cells in column A which don't have an empty cell in column B
    By floep in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2006, 04:57 AM

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