+ Reply to Thread
Results 1 to 3 of 3

a problem of average formula

  1. #1
    Registered User
    Join Date
    08-21-2004
    Posts
    17

    Red face a problem of average formula

    I'm facing a problem about average formula that I can not solve at the moment but I know it's quite simple for you.
    My excel table is as follow:
    a1 b1 c1 d1 e1 f1
    0 3 2 0 5 =average(a1:e1)

    the problem is I want to average only cells that is greater than 0 (the result must be 3.33, not 2)

    Could anyone help me to solve above problem
    thanks in advanced.

  2. #2
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    =SUM(A1:E1)/COUNTIF(A1:E1,">0")

    - Mangesh

  3. #3
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Also...

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

    ...confirmed with CONTROL+SHIFT+ENTER.

    Hope this helps!

    Quote Originally Posted by cuongvt
    I'm facing a problem about average formula that I can not solve at the moment but I know it's quite simple for you.
    My excel table is as follow:
    a1 b1 c1 d1 e1 f1
    0 3 2 0 5 =average(a1:e1)

    the problem is I want to average only cells that is greater than 0 (the result must be 3.33, not 2)

    Could anyone help me to solve above problem
    thanks in advanced.

+ 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