简体   繁体   English

Excel:跨多个工作表公式的单元格总数

[英]Excel: Total Count of Cells Across Multiple Worksheets Formula

I have an Excel workbook with multiple worksheets, each worksheet represents a calendar month starting with May_2013 and ending with December_2013. 我有一个包含多个工作表的Excel工作簿,每个工作表代表一个从May_2013开始到December_2013结束的日历月。 I want to count only the cells within C2-C32 in each worksheet that contains data and omit the cells without data. 我想只计算每个包含数据的工作表中C2-C32内的单元格,并省略没有数据的单元格。

I am completely useless when it comes to Excel. 谈到Excel,我完全没用。 Any solutions/suggestions would be greatly appreciated. 任何解决方案/建议将不胜感激。 Thanks a lot! 非常感谢!

=CountIF(C2:C32,"<>"&"") 

should do what you want. 应该做你想做的事。

For multiple pages, do a countIf for each page example - 对于多个页面,请为每个页面示例执行countIf -

=CountIF('Sheet1'!C2:C32,"<>"&"")+CountIF('Sheet2'!C2:C32,"<>"&"")

This will work to give you the number of cells with values, if you want to add the values together please specify that in your question and I can fix the answer 这将为您提供带有值的单元格数量,如果您想要将值一起添加,请在您的问题中指定,我可以修复答案

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM