+ Reply to Thread
Results 1 to 4 of 4

Average() excluding zero's

  1. #1
    Registered User
    Join Date
    02-24-2012
    Location
    florida
    MS-Off Ver
    Excel 2010
    Posts
    97

    Average() excluding zero's

    good day

    im trying to average a row of cells that have a formula in them and they return 0.00 while i need to exclude these cells so i get a true average of the cells that are not zero.

    thanks in advance.

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Average() excluding zero's

    Try this
    SUM(range)/COUNTIF(range,"<>0")
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Average() excluding zero's

    Use averageif()
    =avarageif(a1:a10,"<>0")
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Average() excluding zero's

    =sum(a1:a10)/countif(a1:a10,">0")

+ 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. The rank of average ranks excluding empty cells but including their average.
    By Terminal45 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-21-2012, 03:44 AM
  2. Average excluding Div/0 but not in range.
    By olga6542 in forum Excel General
    Replies: 19
    Last Post: 06-15-2010, 08:13 PM
  3. Average excluding DIV/0
    By olga6542 in forum Excel General
    Replies: 1
    Last Post: 06-14-2010, 03:24 PM
  4. Excluding a cell from an average
    By wmd in forum Excel General
    Replies: 9
    Last Post: 07-30-2006, 06:35 AM
  5. AVERAGE excluding #N/A
    By RonB in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-02-2005, 05:06 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