ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Count NonBlank Cells (https://www.excelbanter.com/excel-programming/365013-count-nonblank-cells.html)

Lynn

Count NonBlank Cells
 
What code can I use to count the number of non-blank cells in a selected range?

Jim Thomlinson

Count NonBlank Cells
 
Give this a whirl...

msgbox application.worksheetfunction.count(range("A1:D100 "))
--
HTH...

Jim Thomlinson


"Lynn" wrote:

What code can I use to count the number of non-blank cells in a selected range?


Bearacade[_22_]

Count NonBlank Cells
 

=counta(range)


--
Bearacade


------------------------------------------------------------------------
Bearacade's Profile: http://www.excelforum.com/member.php...o&userid=35016
View this thread: http://www.excelforum.com/showthread...hreadid=554342



All times are GMT +1. The time now is 09:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com