+ Reply to Thread
Results 1 to 4 of 4

Average Founction HELP

  1. #1
    Registered User
    Join Date
    03-18-2005
    Posts
    2

    Unhappy Average Founction HELP

    Help please - I am trying to average a range which contains empty cells. I do not want the average to include empty cells!!!!!

  2. #2
    Forum Contributor
    Join Date
    06-23-2004
    Location
    Houston, TX
    Posts
    571
    Quote Originally Posted by jlevine
    Help please - I am trying to average a range which contains empty cells. I do not want the average to include empty cells!!!!!
    The formula

    =average(A1:A100)

    will ignore the blank cells.

    Regards.
    BenjieLop
    Houston, TX

  3. #3
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    If - for some reason - your definition of "empty" includes 0 (Zero); use this formula:

    =SUM(A1:A100)/SUMPRODUCT(--(A1:A100<>0),--(ISNUMBER(A1:A100)))

    The sumproduct formula will exclude:
    0 (Zero)
    "" (Blank)
    " " (Space)...and all other 'letters'

    Ola Sandström

  4. #4
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Another way, if you want to exclude zero's...

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

    ...confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

    Hope this helps!

+ 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