Excel表格如何统计同一种颜色的单元格数量
1、电脑打开Excel表格,如图要统计这个表格中的黄色单元格数量。

3、按Alt+F11进入宏页面。

5、点击插入模块后,在弹出窗口中输入代码:Function SUMColor(rag1 As Range, rag2 As Range)Application.VolatileFor Each i In rag2If i.Interior.ColorIndex = rag1.Interior.ColorIndex ThenSUMColor = SUMColor + 1End IfNextEnd Function

7、输入公式后,按回车键记得统计出来有颜色的单元格数量。

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:22
阅读量:25
阅读量:70
阅读量:33
阅读量:59