ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Countif (https://www.excelbanter.com/excel-discussion-misc-queries/41667-countif.html)

Todd Nelson

Countif
 
When using the countif formula, how can i have it count the cells that have
any text in them?

bj

if you have a combination of numbers and text in a range

try
=counta(range)-count(range)
"Todd Nelson" wrote:

When using the countif formula, how can i have it count the cells that have
any text in them?


Duke Carey

Array-entered, meaning you commit with Ctrl-Shift-Enter

=SUMPRODUCT(--(ISTEXT(A1:A6)))

"Todd Nelson" wrote:

When using the countif formula, how can i have it count the cells that have
any text in them?


Domenic

Try...

=COUNTIF(A1:A100,"?*")

Note that formula blanks "" are excluded from the count.

Hope this helps!

In article ,
"Todd Nelson" wrote:

When using the countif formula, how can i have it count the cells that have
any text in them?


Bob Umlas

No need to array-enter. Simple entry will work fine.
Bob Umlas
Excel MVP

"Duke Carey" wrote in message
...
Array-entered, meaning you commit with Ctrl-Shift-Enter

=SUMPRODUCT(--(ISTEXT(A1:A6)))

"Todd Nelson" wrote:

When using the countif formula, how can i have it count the cells that

have
any text in them?





All times are GMT +1. The time now is 08:39 PM.

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