+ Reply to Thread
Results 1 to 5 of 5

Excel Formula to Average numbers leaving out blank cells

  1. #1
    Registered User
    Join Date
    02-06-2009
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2007
    Posts
    46

    Excel Formula to Average numbers leaving out blank cells

    Does anyone have a way to do this?

    Here is the formula I am using however it interprets the blank cells as 0% and includes it in the average. To make it more difficult there will be some 0%'s.

    Thanks!
    Last edited by bobaftt; 05-27-2009 at 09:46 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Excel Formula to Average numbers leaving out blank cells

    Try doing the average this way:

    =SUM(A1:A10)/COUNT(A1:A10)

    The SUM adds all the values, blanks, zeros included.
    The COUNT will only include cells without a NULL value in it.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Excel Formula to Average numbers leaving out blank cells

    Hm, I think it's not what he want... Maybe I'm wrong, sorry...

    But try this: =SUM(F8:F11)/COUNTIF(F8:F11;"<>0")

  4. #4
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Excel Formula to Average numbers leaving out blank cells

    [COLOR="DarkSlateGray"]=AVERAGE(IF(A1:A10<>"",A1:A10))
    confirm w/ctrl+shift+enter
    [/COLOR]
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  5. #5
    Registered User
    Join Date
    02-06-2009
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Excel Formula to Average numbers leaving out blank cells

    Thanks guys that worked

+ 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