ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   A way to count cells in a range containing text or formulas (https://www.excelbanter.com/excel-programming/444791-way-count-cells-range-containing-text-formulas.html)

Michael Lanier

A way to count cells in a range containing text or formulas
 
I need to be able to count the number of cells in a range that contain
formulas and text; a way of counting anything within a cell including
a null ("") return value. The range might be something like A1:Z100.
Some of the cells within the range will be merged. Can you suggest a
macro or formula (even better) for this. Thanks for your help in
advance.

Ron Rosenfeld[_2_]

A way to count cells in a range containing text or formulas
 
On Mon, 18 Jul 2011 15:08:33 -0700 (PDT), Michael Lanier wrote:

I need to be able to count the number of cells in a range that contain
formulas and text; a way of counting anything within a cell including
a null ("") return value. The range might be something like A1:Z100.
Some of the cells within the range will be merged. Can you suggest a
macro or formula (even better) for this. Thanks for your help in
advance.


=SUMPRODUCT(--NOT(ISBLANK(A1:Z100)))


Michael Lanier

A way to count cells in a range containing text or formulas
 
Thanks Ron. Your help is much appreciated.

Ron Rosenfeld[_2_]

A way to count cells in a range containing text or formulas
 
On Thu, 21 Jul 2011 10:59:03 -0700 (PDT), Michael Lanier wrote:

Thanks Ron. Your help is much appreciated.


Glad to help. Thanks for the feedback.


All times are GMT +1. The time now is 01:43 AM.

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