在特定列中计数零 [英] Count zero's in specific columns
本文介绍了在特定列中计数零的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
10 0 11 5 11 5 16 5
0 0 9 5 11 5 11 5
12 0 12 5 12 5 12 5
11 0 11 5 11 5 11 5
我想请你知道excel中的逻辑,以便在每行和第1,3,5,7列中计数0值。
所以答案将是 1
{1; 0; 0; 0}
感谢您的帮助。
解决方案
:
更新以接收空单元格问题
= SUMPRODUCT( - (MOD(COLUMN(A1:H4),2))*(A1:H4 = 0)*(LEN(A1:H4)> 0))
I have data like the table below.
10 0 11 5 11 5 16 5
0 0 9 5 11 5 11 5
12 0 12 5 12 5 12 5
11 0 11 5 11 5 11 5
And I would like to ask you to know the logic in excel to count "0" value in every row and in column 1,3,5,7 only.
So that the answer will be 1
{1;0; 0; 0}
Thanks for your help.
解决方案
A little shorter:
Updated to pick up on the empty cells issue
=SUMPRODUCT(--(MOD(COLUMN(A1:H4),2))* (A1:H4=0)*(LEN(A1:H4)>0))
这篇关于在特定列中计数零的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文