Skip to main content

How to average for cells with values only (exclude 0 or blank cells) in Excel?

Author: Kelly Last Modified: 2020-05-07

Average function is quite useful for our daily works in Excel. This article will talk about how to calculate the average for cells with values only (excluding blank cells) in Excel easily.

Average with Ignoring/excluding blank cells with formula

The Average function will ignore the truly blank cells automatically. However, if you have disabled the option of Show a zero in cells that have zero value in Excel Options dialog box (clicking File > Options > Advanced > Display options for this worksheet), some blank cells may have zero values in Excel. In this case, the Average function will not exclude these blank cells with zero values.

Actually we can exclude the cells with zeros to solve this problem. For example, you want to average the Range A1:D13 with ignoring/excluding blank cells and zeros, you can apply the formula =AVERAGEIF(A1:D13,"<>0") as below screenshot shown:

Average for cells with values only (exclude blank cells) with Kutools for Excel

Microsoft Excel can automatically average selected cells and show calculated results in the Status bar. If we can select only nonblank cells in a range, we can get the average of this range excluding blank cells. Kutools for Excel's Select Nonblank Cells utility can help you get it done at once.

Kutools for Excel - Packed with over 300 essential tools for Excel. Enjoy a full-featured 30-day FREE trial with no credit card required! Download now!

Select the range where you want to average excluding blank cells, and click the Kutools > Select > Select Un blank Cells.
doc average ignore blank zero 01

Now only cells with values are selected in the specified range, and you will get the average excluding blank cells in the Status bar as below screenshot shown:

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy a full-featured 30-day FREE trial with no credit card required! Get It Now


Kutools for Excel: Over 300 handy tools at your fingertips! Start your 30-day free trial with no feature limitations today. Download Now!

Calculate special averages in Excel

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Comments (7)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
= AVERAGEIF (A1: D13, "<> 0") not works, must be used = AVERAGEIF (A1: D13; "<> 0") semicolon instead of a comma
This comment was minimized by the moderator on the site
Hi, this could be due to regional settings. In localities that use a comma as a decimal separator, formula arguments are typically separated by semicolons, not commas.
This comment was minimized by the moderator on the site
what if you're taking an average from a drop down menu in cells (a, b, c, d, e, f) assigned values (5,4,3,2,0) - how do you skip cells that are left blank?
This comment was minimized by the moderator on the site
Hi Darren,
The AVERAGE function ignores blank cells automatically. However, it will include the zeros which are returned by formulas or other ways but display as blank. To ignoring both blank and zeros when calculating average, we can use the AVERAGEIF function.
Replace “range” to the specified range reference based on your need.
This comment was minimized by the moderator on the site
if the entire range has zeros, it still errors out. Would be nice if that defaulted to zero as well. Mathematically not correct but ok for most reasons.
This comment was minimized by the moderator on the site
this is omitting an entire field. the "average range"


Looking for value L1 within A:H, averaging the values in H:H that match L1 criteria. Where does the (<>) go huh?
This comment was minimized by the moderator on the site
Hi Bob,
Your formula makes me puzzle. Do you mean to look for a value in the Range A:H by L1, and then average cells in H:H if they match the found value? If so, you can apply VLOOKUP or MATCH function to look for the value in Range A:H, and then use AVERAGEIF function to get the average of H:H.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
Rate this post:
0   Characters
Suggested Locations