Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Marty
 
Posts: n/a
Default Help with a COUNTIF (I think)

Hello, all:

I have a column of about 500 cells, some of which contain numbers, some
contain blanks, and some contain the word "none". I want to put a formula in
the cell at the top of the colum which counts ONLY those cells which contain
numbers.

Is there a specific function which will recognize only numbers? Failing
that, I assume a COUNTIF is in order.

I tried this:

=COUNTIF(A2:A500,AND("<""","<none"))

but it yields a zero. I've also tried variations moving around and
eliminating the double quotes but I can't get it to work.

Any suggestions? Help is appreciated. Thanks,
MARTY
  #2   Report Post  
N Harkawat
 
Posts: n/a
Default

=sumproduct(--isnumber(a2:a500))

"Marty" wrote in message
...
Hello, all:

I have a column of about 500 cells, some of which contain numbers, some
contain blanks, and some contain the word "none". I want to put a formula
in
the cell at the top of the colum which counts ONLY those cells which
contain
numbers.

Is there a specific function which will recognize only numbers? Failing
that, I assume a COUNTIF is in order.

I tried this:

=COUNTIF(A2:A500,AND("<""","<none"))

but it yields a zero. I've also tried variations moving around and
eliminating the double quotes but I can't get it to work.

Any suggestions? Help is appreciated. Thanks,
MARTY



  #3   Report Post  
Marty
 
Posts: n/a
Default

Didn't work. Still yields a zero.

I assume you intended me to replace the "--" with the A2:A500 range.

Also, not sure why you're suggesting the use of SUMPRODUCT, since all I want
to do is count the cells.

What am I missing? Please say more.

"N Harkawat" wrote:

=sumproduct(--isnumber(a2:a500))

"Marty" wrote in message
...
Hello, all:

I have a column of about 500 cells, some of which contain numbers, some
contain blanks, and some contain the word "none". I want to put a formula
in
the cell at the top of the colum which counts ONLY those cells which
contain
numbers.

Is there a specific function which will recognize only numbers? Failing
that, I assume a COUNTIF is in order.

I tried this:

=COUNTIF(A2:A500,AND("<""","<none"))

but it yields a zero. I've also tried variations moving around and
eliminating the double quotes but I can't get it to work.

Any suggestions? Help is appreciated. Thanks,
MARTY




  #4   Report Post  
N Harkawat
 
Posts: n/a
Default

No do not replace "--"

just copy the formula offered and paste it as it is...

=sumproduct(--isnumber(a2:a500))

IT WILL WORK.





"Marty" wrote in message
...
Didn't work. Still yields a zero.

I assume you intended me to replace the "--" with the A2:A500 range.

Also, not sure why you're suggesting the use of SUMPRODUCT, since all I
want
to do is count the cells.

What am I missing? Please say more.

"N Harkawat" wrote:

=sumproduct(--isnumber(a2:a500))

"Marty" wrote in message
...
Hello, all:

I have a column of about 500 cells, some of which contain numbers, some
contain blanks, and some contain the word "none". I want to put a
formula
in
the cell at the top of the colum which counts ONLY those cells which
contain
numbers.

Is there a specific function which will recognize only numbers?
Failing
that, I assume a COUNTIF is in order.

I tried this:

=COUNTIF(A2:A500,AND("<""","<none"))

but it yields a zero. I've also tried variations moving around and
eliminating the double quotes but I can't get it to work.

Any suggestions? Help is appreciated. Thanks,
MARTY






  #5   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Take a look at

http://www.mcgimpsey.com/excel/doubleneg.html

In article ,
"Marty" wrote:

Didn't work. Still yields a zero.

I assume you intended me to replace the "--" with the A2:A500 range.

Also, not sure why you're suggesting the use of SUMPRODUCT, since all I want
to do is count the cells.

What am I missing? Please say more.



  #6   Report Post  
Marty
 
Posts: n/a
Default

It worked! Thanks very much.

"N Harkawat" wrote:

No do not replace "--"

just copy the formula offered and paste it as it is...

=sumproduct(--isnumber(a2:a500))

IT WILL WORK.





"Marty" wrote in message
...
Didn't work. Still yields a zero.

I assume you intended me to replace the "--" with the A2:A500 range.

Also, not sure why you're suggesting the use of SUMPRODUCT, since all I
want
to do is count the cells.

What am I missing? Please say more.

"N Harkawat" wrote:

=sumproduct(--isnumber(a2:a500))

"Marty" wrote in message
...
Hello, all:

I have a column of about 500 cells, some of which contain numbers, some
contain blanks, and some contain the word "none". I want to put a
formula
in
the cell at the top of the colum which counts ONLY those cells which
contain
numbers.

Is there a specific function which will recognize only numbers?
Failing
that, I assume a COUNTIF is in order.

I tried this:

=COUNTIF(A2:A500,AND("<""","<none"))

but it yields a zero. I've also tried variations moving around and
eliminating the double quotes but I can't get it to work.

Any suggestions? Help is appreciated. Thanks,
MARTY






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
COUNTIF COMBINATION?? Heather Excel Worksheet Functions 1 April 26th 05 02:44 AM
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM
countif, again Liz G Excel Worksheet Functions 2 November 1st 04 11:20 PM


All times are GMT +1. The time now is 06:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"