跳到主要内容

如何在Excel中对仅具有值(不包括0或空白单元格)的单元格求平均?

平均功能对于我们在Excel中的日常工作非常有用。 本文将讨论如何轻松地计算Excel中仅具有值(不含空白单元格)的单元格的平均值。


忽略/排除带有公式的空白单元格的平均值

平均功能将自动忽略真正的空白单元格。 但是,如果禁用了S选项具有零值的单元格中的零如何 在“ Excel选项”对话框中(单击 文件 > 附加选项 > 高级 > 显示此工作表的选项),则某些空白单元格在Excel中可能具有零值。 在这种情况下,“平均值”功能将不会排除具有零值的这些空白单元格。
文档使用平均 9

实际上,我们可以排除零单元以解决此问题。 例如,您要忽略/排除空白单元格和零来平均范围A1:D13,则可以应用公式 = AVERAGEIF(A1:D13,“ <> 0”) 如下图所示:


使用 Kutools for Excel 仅具有值的单元格(不包括空白单元格)的平均值

Microsoft Excel 可以自动对所选单元格进行平均并在状态栏中显示计算结果。如果我们只能选择一个范围内的非空白单元格,我们就可以获得该范围(不包括空白单元格)的平均值。 Excel 的 Kutools 选择非空白单元格 实用程序可以帮助您立即完成。

Kutools for Excel - 包含 300 多个 Excel 基本工具。 享受全功能 30 天免费试用,无需信用卡! 现在下载!

选择要平均的范围(不包括空白单元格),然后单击 库工具 > 选择 > 选择“空白单元格”.
doc平均忽略空白零01

现在,仅在指定范围内选择了具有值的单元格,并且您将在状态栏中获得不包括空白单元格的平均值,如下图所示:

Kutools for Excel - 使用 300 多种基本工具增强 Excel 功能。 享受全功能 30 天免费试用,无需信用卡! 立即行动吧!


演示


Kutools for Excel:超过 300 个方便的工具触手可及! 立即开始 30 天免费试用,没有任何功能限制。 立即下载!

在Excel中计算特殊平均值

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
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.
=AVERAGEIF(range,"<>0")
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"

=averageif(A:H,L1,H:H)

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