简体   繁体   English

如何在Excel中计算非相邻的空白单元格?

[英]How can I count non adjacent blank cells in excel?

I am working on a search function that searches a table in another worksheet that contains client information, from a cell using VLOOKUP. 我正在使用一个搜索功能,该功能使用VLOOKUP从单元格中搜索另一个包含客户信息的工作表中的表。 I have 5 "search box" cells and want to be able to search by one criteria at a time, but only if the other 4 search Criteria boxes are empty. 我有5个“搜索框”单元格,希望能够一次按一个条件进行搜索,但前提是其他4个搜索条件框为空。 So if there was text in more than one of the search boxes at once it would return an error message. 因此,如果一次在多个搜索框中包含文本,则会返回错误消息。

I achieved a desirable result in the first box using COUNTBLANK() like so: COUNTBLANK(B5:B8)=4 nesting it in an IF statement in the formula bar 我在第一个框中使用COUNTBLANK()取得了理想的结果,如下所示: COUNTBLANK(B5:B8)=4嵌套在公式栏中的IF语句中

My question is...How can I count the number of nonadjacent blank cells? 我的问题是...如何计算不相邻的空白单元格的数量? So I can confirm that they are empty. 因此,我可以确认它们为空。

您可以简单地执行=countblank(A1)+countblank(b2)+countblank(c3)+countblank(d4)+countblank(e5)因为您所计数的单元格数量并不高

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Excel中连续计数单元格,但仅对相邻单元格计数一次 - How can I count cells in a row but only count adjacent cells once in Excel 在Excel中,如何计算空白单元格的数量,直到下一个非空白单元格 - In Excel, How do I count the number of blank cells until the next non-blank cell smb 能否帮助解决如何对相邻的非空白单元格求和,并获得聚类(分组)单元格的结果? - Can smb help out how to sum adjacent non-blank cells, and get the outcomes of clustered (grouped) cells? 如何在Excel中相邻单元格为空白的行中列出值 - how to list values in a row where adjacent cells are blank in excel Excel-如果列中的单元格包含某个值,如何添加相邻单元格的值? - Excel - If cells in a column contain a certain value, how can I add the values of the adjacent cells? 计算Excel行中的非空白单元格(不使用VBA) - Count non-blank cells in Excel rows (not using VBA) Excel-如何根据其颜色和相邻单元格的颜色对单元格进行计数? - Excel - How to count cells depending on its color and the color of an adjacent cell? 计算 Excel/Google 表格中的临时非空白单元格 - Count adyacent non-blank cells in Excel/Google Sheets Excel - 计算所有非空单元格,不包括空字符串 - Excel - Count all non-blank cells, excluding empty string Excel 2010:计算具有相邻单元格空白的单元格 - Excel 2010: Counting cells with adjacent cell blank
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM