简体   繁体   English

Arrayformula仅在两个单元格都不为零/非空白时才计算一行中的单元格少于另一行中的单元格

[英]Arrayformula count how many cells in a row are less than cells in another row only if both are nonzero/nonblank

I found this formula, =arrayformula(sumproduct($C$24:$C$31<B$24:B$31)) but I need it to ignore if one or both cells are 0 or blank. 我找到了这个公式=arrayformula(sumproduct($C$24:$C$31<B$24:B$31))但我需要它忽略一个或两个单元格为0还是空白。

I've tried and, and countifs , but I can't seem to figure it out. 我已经尝试过and和countifs ,但是我似乎无法弄清楚。

=arrayformula(sumproduct($C$24:$C$31<B$24:B$31))

I want a number 0-8 for counting how many cells in the particular row are less than the compared row, but (ie 0<25) needs to be ignored. 我想要一个0-8的数字来计算特定行中比比较行少的单元格,但是(即0 <25)需要忽略。

try it like this: 尝试这样:

=ARRAYFORMULA(SUM(IF((C2:C < B2:B) * (C2:C<>0), 1, 0)))

0

暂无
暂无

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

相关问题 ARRAYFORMULA,但只能排成一行,直到EMPTY单元格-不起作用 - ARRAYFORMULA but only untill EMPTY cells in row - doesn't work 如果一行上的两个单元格都相等,如何为行着色 - How to color row if two cells on a row both equal complete 如何根据另一列中的第一个空白行计算一列中空白单元格的数量 - How to count the number of blank cells in one column based on the first blank row in another column 如果所有 4 个单元格都为 0,则忽略行; 如果 4 个单元格中的任何一个大于 0,则获取名称 - Ignore row if all 4 cells are 0; get name if any of the 4 cells is greater than 0 Arrayformula添加两个单元格 - Arrayformula addition of two cells 如何获取两张工作表之间一行中不匹配单元格的数量? - How do I get the count of non matching cells in a row between two sheets? 如何在表格中为一行中的非空白单元格收集数据和标题 - How to collect data and headers for non blank cells in a row in Sheets 如何在Excel中编写VBA多行核心响应单元格If语句 - How to write a VBA multi row coresponding cells If Statement in Excel 查找另一个单元格中包含特定文本的所有单元格,然后将这些单元格返回到与指定单元格相同的另一列中 - Find all cells that include specific text in another cell, then return those cells in another column of the same row as the specified cell 如何为 Google 表格上的多个单元格应用 Arrayformula,其中包括固定单元格和可变单元格? - How can I apply an Arrayformula for multiple cells on Google Sheets which includes fixed and variable cells?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM