+ Reply to Thread
Results 1 to 4 of 4

How to average cells but exclude 0 values?

  1. #1
    Registered User
    Join Date
    08-04-2006
    Posts
    14

    How to average cells but exclude 0 values?

    How do I average, for example, cell A1 across multiple sheets but exclude cells that contain 0 or no value? I keep getting the #DIV/0! error, thanks!

  2. #2
    Registered User
    Join Date
    07-23-2008
    Location
    UAE
    Posts
    12
    Using average() formula Excel won't take into account blank cells. However, if the cell Value is 0 but not blank Excel will count it.

    If all cells are blank you get #DIV/0! error.

  3. #3
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Difficult to say without seeing your formula!

    =AVERAGE(Sheet1:Sheet3!A1)

    works for me, although this will still include 0 values (but not blanks).

    Richard

  4. #4
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256

    Average excluding 0, blank and text

    Here is one option.
    It's an Array formula, meaning type the formula, then confirmed by holding down Ctrl+Shift and then hit Enter, Just hitting Enter will not work.
    =AVERAGE(IF(ISNUMBER(A1:A4),IF(A1:A4<>0,A1:A4)))
    Hope it helped
    Ola

+ 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