+ Reply to Thread
Results 1 to 8 of 8

Avg() function only using populated cells

  1. #1
    Registered User
    Join Date
    03-21-2012
    Location
    Essex
    MS-Off Ver
    Excel 2010
    Posts
    21

    Avg() function only using populated cells

    Hello there

    I want to get an avg of column, But instead of including all cells for future eg avg(A1:A999999)


    is there a way i could just include cell that are populated.?

    Regards

    Rob

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Avg() function only using populated cells

    Perhaps the AVERAGEIF function?

  3. #3
    Registered User
    Join Date
    03-21-2012
    Location
    Essex
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Avg() function only using populated cells

    could you give an example please

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Avg() function only using populated cells

    But instead of including all cells for future eg avg(A1:A999999)
    is there a way i could just include cell that are populated.?
    Excel will still ignore blank and non-numeric cells while calculating the Average function
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Avg() function only using populated cells

    Pl Try

    =AVERAGEIF(A1:A999999,">0")

  6. #6
    Registered User
    Join Date
    03-21-2012
    Location
    Essex
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Avg() function only using populated cells

    thank you once again.

    Top bannana

  7. #7
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Avg() function only using populated cells

    =AVERAGEIF(A1:A999999,">0")
    What about negative values (if any) and legitimate zero values, should these be excluded from the calculation?

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Avg() function only using populated cells

    As Ace_XL said..

    =AVERAGE(A:A) and =AVERAGEIF(A1:A999999,">0"), gives same results.



    Edit. For positive numbers
    Last edited by Fotis1991; 08-03-2012 at 07:43 AM. Reason: Edit
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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