Results 1 to 4 of 4
  1. #1
    New Lounger
    Join Date
    Dec 2001
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    formula for averages (IE - 5.0)

    I am new to the Excel software and I need help with a formula to calculate the average of cell values. How do I write a formula to find the average while omitting empty cells?

  2. #2
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Dublin, Ireland, Republic of
    Posts
    2,697
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: formula for averages (IE - 5.0)

    The function AVERAGE() should work. the following is a note from the help file :
    <hr>If an array or reference argument contains text, logical values, or empty cells, those values are ignored; however, cells with the value zero are included.<hr>
    You can use =AVERAGE(A1:A10) to find the average of the range A1:A10.

    Andrew C

  3. #3
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: formula for averages (IE - 5.0)

    In addition to Andrew's advice, if you need a weighted average, i.e. a true mean, look into =SUMPRODUCT, used like this (with apologies if my math syntax isn't technically correct):

    =SUMPRODUCT(Frequency_Range,Value_Range)/SUM(Frequency_Range)
    -John ... I float in liquid gardens
    UTC -7ąDS

  4. #4
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: formula for averages (IE - 5.0)

    If the cells are truly empty, then the Average function should do what you are asking:

    <pre>=Average(A1:A10)
    </pre>


    That should average A1:A10 ignoring empty cells.

    If the cells contain formula that look empty, then you will need to do change those formula. For example if the cell contains =B1 and B1 is empty, and the cell is formatted to not display zero, you will need to change the formula to:

    <pre>=IF(B1="","",B1)
    </pre>

    Legare Coleman

Posting Permissions

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