Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在上面的例子中 - 它应该显示计数值 - 8
这需要一个数组公式。要输入数组公式,请将公式输入到单元格中,然后点击Ctrl++ 。ShiftEnter
Ctrl
Shift
Enter
=SUM(IF(COUNTIF(OFFSET(A1:C5,ROW(A1:C5)-1,0,1,3),"<>""")>0,1,0))
将此公式放入 D1:
=IF(COUNT(A1:C1)>0,1,0)
将公式复制到尽可能多的行。
取 D 列的总和。