+ Reply to Thread
Results 1 to 6 of 6

Averaging, ignoring zeros

Hybrid View

  1. #1
    Mark
    Guest

    Averaging, ignoring zeros

    How do you average values in a row, ignoring any zeros?

  2. #2
    Bob Phillips
    Guest

    Re: Averaging, ignoring zeros

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

    This is an array formula, so commit with Ctrl-SHift-Enter.

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Mark" <Mark@discussions.microsoft.com> wrote in message
    news:B88586C7-8AEC-43B7-94CC-E8006FCEFD77@microsoft.com...
    > How do you average values in a row, ignoring any zeros?




  3. #3
    Peo Sjoblom
    Guest

    Re: Averaging, ignoring zeros

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

    entered with ctrl + shift & enter

    --

    Regards,

    Peo Sjoblom


    "Mark" <Mark@discussions.microsoft.com> wrote in message
    news:B88586C7-8AEC-43B7-94CC-E8006FCEFD77@microsoft.com...
    > How do you average values in a row, ignoring any zeros?




  4. #4
    Harlan Grove
    Guest

    Re: Averaging, ignoring zeros

    Peo Sjoblom wrote...
    >=AVERAGE(IF(A1:D1<>0,A1:D1))
    >
    >entered with ctrl + shift & enter

    ....

    Normal caveats with respect to continuity - if there could be positive
    and negative values, zero values should be included. If only positive
    values should be included in averages, that should be made explicit,
    i.e.,

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


  5. #5
    CLR
    Guest

    Re: Averaging, ignoring zeros

    =SUM(A:A)/COUNTIF(A:A,"<>0")

    Vaya con Dios,
    Chuck, CABGx3


    "Mark" <Mark@discussions.microsoft.com> wrote in message
    news:B88586C7-8AEC-43B7-94CC-E8006FCEFD77@microsoft.com...
    > How do you average values in a row, ignoring any zeros?




  6. #6
    Jason Morin
    Guest

    Re: Averaging, ignoring zeros

    Just an alternative to the typical AVERAGE array formula:

    =SUM(1:1)/SUM(COUNTIF(1:1,{"<>","*",0})*{1,-1,-1})

    HTH
    Jason
    Atlanta, GA

    >-----Original Message-----
    >How do you average values in a row, ignoring any zeros?
    >.
    >


+ 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