ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   counta in array formula not working (https://www.excelbanter.com/excel-worksheet-functions/180147-counta-array-formula-not-working.html)

Bruce

counta in array formula not working
 
Hi,

My series B13:B20 contains zero's and text values. I wish to count the text
values but not zero's or blanks.

I have tried the following as an array but its counting all cells in range
with the result = 8 which is not correct (as there are zeros and balnks in
the series).

=COUNTA(IF(B13:B20<0,"A",0))

Any ideas?

Bruce

Tom Hutchins

counta in array formula not working
 
How about
=SUMPRODUCT(--(LEN(B13:B20)0),--(B13:B20<0))

Hope this helps,

Hutch

"Bruce" wrote:

Hi,

My series B13:B20 contains zero's and text values. I wish to count the text
values but not zero's or blanks.

I have tried the following as an array but its counting all cells in range
with the result = 8 which is not correct (as there are zeros and balnks in
the series).

=COUNTA(IF(B13:B20<0,"A",0))

Any ideas?

Bruce


Rick Rothstein \(MVP - VB\)[_215_]

counta in array formula not working
 
Does this do what you want?

=COUNTA(B13:B20)-COUNT(B13:B20)

Rick


"Bruce" wrote in message
...
Hi,

My series B13:B20 contains zero's and text values. I wish to count the
text
values but not zero's or blanks.

I have tried the following as an array but its counting all cells in range
with the result = 8 which is not correct (as there are zeros and balnks in
the series).

=COUNTA(IF(B13:B20<0,"A",0))

Any ideas?

Bruce



T. Valko

counta in array formula not working
 
I wish to count the text values but not zero's or blanks

If blanks means empty cells:

=COUNTIF(B13:B20,"*")


--
Biff
Microsoft Excel MVP


"Bruce" wrote in message
...
Hi,

My series B13:B20 contains zero's and text values. I wish to count the
text
values but not zero's or blanks.

I have tried the following as an array but its counting all cells in range
with the result = 8 which is not correct (as there are zeros and balnks in
the series).

=COUNTA(IF(B13:B20<0,"A",0))

Any ideas?

Bruce





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

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