+ Reply to Thread
Results 1 to 3 of 3

Calculating Averages but excluding zero's

  1. #1
    Registered User
    Join Date
    02-26-2006
    Posts
    11

    Calculating Averages but excluding zero's

    Hi,

    i want to calculate the average of a column but exclude anyzeros in that column.
    For example: If column A1 contained 2, 2, 0, 2, 2, 0 then the average would be 2. (8/4) NOT (8/6)

    Thanks.

  2. #2
    Elkar
    Guest

    RE: Calculating Averages but excluding zero's

    Try this:

    =AVERAGE(IF(A1:A6>0,A1:A6))

    Enter this as an array formula. Use CTRL-SHIFT-ENTER instead of just Enter.

    HTH,
    Elkar


    "fodman" wrote:

    >
    > Hi,
    >
    > i want to calculate the average of a column but exclude anyzeros in
    > that column.
    > For example: If column A1 contained 2, 2, 0, 2, 2, 0 then the average
    > would be 2. (8/4) NOT (8/6)
    >
    > Thanks.
    >
    >
    > --
    > fodman
    > ------------------------------------------------------------------------
    > fodman's Profile: http://www.excelforum.com/member.php...o&userid=31941
    > View this thread: http://www.excelforum.com/showthread...hreadid=555103
    >
    >


  3. #3
    Ragdyer
    Guest

    Re: Calculating Averages but excluding zero's

    One way is with this *array* formula:

    =AVERAGE(IF(A1:A6<>0,A1:A6))

    --
    Array formulas must be entered with CSE, <Ctrl> <Shift > <Enter>, instead of
    the regular <Enter>, which will *automatically* enclose the formula in curly
    brackets, which *cannot* be done manually.
    --
    HTH,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "fodman" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi,
    >
    > i want to calculate the average of a column but exclude anyzeros in
    > that column.
    > For example: If column A1 contained 2, 2, 0, 2, 2, 0 then the average
    > would be 2. (8/4) NOT (8/6)
    >
    > Thanks.
    >
    >
    > --
    > fodman
    > ------------------------------------------------------------------------
    > fodman's Profile:
    > http://www.excelforum.com/member.php...o&userid=31941
    > View this thread: http://www.excelforum.com/showthread...hreadid=555103
    >



+ 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