ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Counting non blanks different from "" (https://www.excelbanter.com/excel-worksheet-functions/202236-counting-non-blanks-different.html)

vsoler

Counting non blanks different from ""
 
My range contains cells, say B11:B50 with formulas; some of them
return numbers, some others text and still some others nulls (blanks
or "").

I want to count the number of non blank cells in the range, but the
formula =COUNTA(B11:B50) always returns 40 because "" are not
considered blanks.

Is there any alternative formula that I can use for my purpose?

Thank you

Mike H

Counting non blanks different from ""
 
Maybe

=SUMPRODUCT(--(B11:B51<""))

Mike

"vsoler" wrote:

My range contains cells, say B11:B50 with formulas; some of them
return numbers, some others text and still some others nulls (blanks
or "").

I want to count the number of non blank cells in the range, but the
formula =COUNTA(B11:B50) always returns 40 because "" are not
considered blanks.

Is there any alternative formula that I can use for my purpose?

Thank you


Peo Sjoblom[_2_]

Counting non blanks different from ""
 
=SUMPRODUCT(--(A1:A10<""))


--


Regards,


Peo Sjoblom

"vsoler" wrote in message
...
My range contains cells, say B11:B50 with formulas; some of them
return numbers, some others text and still some others nulls (blanks
or "").

I want to count the number of non blank cells in the range, but the
formula =COUNTA(B11:B50) always returns 40 because "" are not
considered blanks.

Is there any alternative formula that I can use for my purpose?

Thank you




Ashish Mathur[_2_]

Counting non blanks different from ""
 
Hi,

You can also use this formula.

COUNTA(range)-COUNTBLANK(range)

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"vsoler" wrote in message
...
My range contains cells, say B11:B50 with formulas; some of them
return numbers, some others text and still some others nulls (blanks
or "").

I want to count the number of non blank cells in the range, but the
formula =COUNTA(B11:B50) always returns 40 because "" are not
considered blanks.

Is there any alternative formula that I can use for my purpose?

Thank you



Mike H

Counting non blanks different from ""
 
Tested?

"Ashish Mathur" wrote:

Hi,

You can also use this formula.

COUNTA(range)-COUNTBLANK(range)

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"vsoler" wrote in message
...
My range contains cells, say B11:B50 with formulas; some of them
return numbers, some others text and still some others nulls (blanks
or "").

I want to count the number of non blank cells in the range, but the
formula =COUNTA(B11:B50) always returns 40 because "" are not
considered blanks.

Is there any alternative formula that I can use for my purpose?

Thank you




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

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