Help - Easy Also - AverageA
Upcoming Power Excel Seminars
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 4 of 4

Thread: Help - Easy Also - AverageA

  1. #1
    New Member
    Join Date
    Mar 2002
    Location
    home
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    I am doing an "averagea" spreadsheet in which information is passed on to other cells on other worksheets once entered.
    however - when an empty cell is passed on - the other sheet cannot average because you cannot divide by zero.

    what can i do?

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Use the AVERAGE worksheet function with...

    {=AVERAGE(IF(A1:A5),A1:A5)}

    Note: This is an array formula which must be entered using the Control+Shift+Enter key combination. The outermost braces, { }, are not entered by you -- they're supplied by Excel in recognition of a properly entered array formula.


    [ This Message was edited by: Mark W. on 2002-03-05 13:06 ]

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

    Default

    On 2002-03-05 12:57, moosemessier wrote:
    I am doing an "averagea" spreadsheet in which information is passed on to other cells on other worksheets once entered.
    however - when an empty cell is passed on - the other sheet cannot average because you cannot divide by zero.

    what can i do?
    If the range you want to average does not contain negative numbers, you can just use:

    =SUM(A1:A9)/MAX(1,COUNTIF(A1:A9,">0"))

    Otherwise use:

    =SUM(A1:A9)/MAX(1,COUNTIF(A1:A9,">0")+COUNTIF(A1:A9,"<0"))

    Aladin

  4. #4
    New Member
    Join Date
    Mar 2002
    Location
    home
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    thanks@ ill try it out.


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