计算非空单元格 [英] count non-empty cells

查看:66
本文介绍了计算非空单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


如何计算此范围内的空单元格?


设置rng =范围("C: C")。查找(What:=" Machine",LookIn:= xlValues,LookAt:= xlWhole,_
$
        SearchDirection:= xlNext,MatchCase:= False)


我需要从C列右侧计算所有非空单元格,直到满足空单元格


<谢谢你,b
aurimas


 

解决方案

你有没有尝试过:

 
NoNonEmptyCells = Application.WorksheetFunction.CountA(Range( "C:C"))


Hi,

how can I count not empty cell in this range?

Set rng = Range("C:C").Find(What:="Machine", LookIn:=xlValues, LookAt:=xlWhole, _
        SearchDirection:=xlNext, MatchCase:=False)

I need to count all not empty cell on the right side from the C column, until the empty cell is met

thank you,
aurimas

 

解决方案

Have you tried:

NoNonEmptyCells = Application.WorksheetFunction.CountA(Range("C:C"))


这篇关于计算非空单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆