Finding average ignoring zeros and not in a range
Manage your personal finances in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Finding average ignoring zeros and not in a range

  1. #1
    New Member
    Join Date
    Feb 2002
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    How can you get an average of a group of numbers while ignoring zeros AND the numbers are not in a range. Like a3, a6, a8,a9 etc... How can you do this?

  2. #2
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    81,767
    Post Thanks / Like
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)

    Default

      
    On 2002-03-02 12:30, tink wrote:
    How can you get an average of a group of numbers while ignoring zeros AND the numbers are not in a range. Like a3, a6, a8,a9 etc... How can you do this?
    =SUM(A1:A2,A4:A5,A7:A9)/MAX(1,COUNTIF(A1:A2,">0")+COUNTIF(A4:A5,">0")+COUNTIF(A7:A9,">0"))

    will compute an average of positive numbers in non-consecutive ranges [ A1:A2,A4:A5,and A7:A9 ]ignoring zeroes in the process.

    Aladin

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com