ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   @Count (https://www.excelbanter.com/excel-worksheet-functions/260916-%40count.html)

mad

@Count
 
I am using Excel 2003.
How do I count rows/column with only text in it. Ex: I have 25 rows where
column "B" says "PO Received" in each cell. I tried @count(B1-B24), but I
only came up with "0" as an answer. What am I doing wrong? Can anyone help
me with this, please???

Aurora

T. Valko

@Count
 
In Excel formulas are started with an equal = sign.

If you start with the "at" sign Excel will change it to the equal sign.

To count *text only* :

=COUNTIF(B1:B24,"*")

That will include cells that contain formula blanks "". To exclude cells
that contain formula blanks:

=COUNTIF(B1:B24,"?*")

--
Biff
Microsoft Excel MVP


"MAD" wrote in message
...
I am using Excel 2003.
How do I count rows/column with only text in it. Ex: I have 25 rows
where
column "B" says "PO Received" in each cell. I tried @count(B1-B24), but I
only came up with "0" as an answer. What am I doing wrong? Can anyone
help
me with this, please???

Aurora




Don Guillett[_2_]

@Count
 
Try this to count ONLY text in your range

=SUMPRODUCT((ISTEXT(B1:B24)*1))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"MAD" wrote in message
...
I am using Excel 2003.
How do I count rows/column with only text in it. Ex: I have 25 rows
where
column "B" says "PO Received" in each cell. I tried @count(B1-B24), but I
only came up with "0" as an answer. What am I doing wrong? Can anyone
help
me with this, please???

Aurora



JLatham

@Count
 
COUNTA() counts both text and numbers
COUNT() counts only numbers, so

=Counta(B1:B24)-Count(B1:B24)
will give you the number of text entries in the range B1:B24

You could also use
=COUNTIF(B1:B24,"PO Received")
and that would count only cells in the range with those words in them.

"MAD" wrote:

I am using Excel 2003.
How do I count rows/column with only text in it. Ex: I have 25 rows where
column "B" says "PO Received" in each cell. I tried @count(B1-B24), but I
only came up with "0" as an answer. What am I doing wrong? Can anyone help
me with this, please???

Aurora



All times are GMT +1. The time now is 05:00 PM.

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