ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Identifying the # of cells containing data (https://www.excelbanter.com/excel-worksheet-functions/224604-identifying-cells-containing-data.html)

WA

Identifying the # of cells containing data
 
Hello,

I have a worksheet with a column that contains 10 vlookup functions (1 in
each row). In each cell, the vlookup function displays either a zero, or a
number greater then zero. Is there a function that will return the number of
cells containing a value greater then zero?

The 'count' function does not work. Because there are values in all cells,
it returns the number ten.

Thanks.

Eduardo

Identifying the # of cells containing data
 
Hi,
Try

=COUNTIF(K1:K25,"0")

Change the range to fit your needs

"WA" wrote:

Hello,

I have a worksheet with a column that contains 10 vlookup functions (1 in
each row). In each cell, the vlookup function displays either a zero, or a
number greater then zero. Is there a function that will return the number of
cells containing a value greater then zero?

The 'count' function does not work. Because there are values in all cells,
it returns the number ten.

Thanks.


Dave Peterson

Identifying the # of cells containing data
 
=countif(a1:a10,""&0)
(which is equivalent to)
=countif(a1:a10,"0")


or if you put the 0 in X99:
=countif(a1:a10,""&x99)

WA wrote:

Hello,

I have a worksheet with a column that contains 10 vlookup functions (1 in
each row). In each cell, the vlookup function displays either a zero, or a
number greater then zero. Is there a function that will return the number of
cells containing a value greater then zero?

The 'count' function does not work. Because there are values in all cells,
it returns the number ten.

Thanks.


--

Dave Peterson


All times are GMT +1. The time now is 10:30 AM.

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