#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Countif not counting

Hi, i'm puzzled and have never run across this before. I have a column
containing several instances of this value: <=$9000 nothing fancy as you
can see. When i countif and point to this column using a value copied/pasted
so i know it's exact, my result is zero. I even reference the value in the
column in the formula and get zero. Any ideas? Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Countif not counting

Try this:

C1 = <=$9000

=COUNTIF(A:A,"*"&C1)

The wildcard forces the criteria to be evaluated as the TEXT string
"<=$9000".

=COUNTIF(A:A,C1)

In this version the criteria is being evaluated as the logical expression
"less than or equal to $9000".

--
Biff
Microsoft Excel MVP


"PatriciaT" wrote in message
...
Hi, i'm puzzled and have never run across this before. I have a column
containing several instances of this value: <=$9000 nothing fancy as you
can see. When i countif and point to this column using a value
copied/pasted
so i know it's exact, my result is zero. I even reference the value in the
column in the formula and get zero. Any ideas? Thank you.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Countif not counting

How about:
=COUNTIF(a:a,"=<=$9000")
This may be easier to understand later:
=COUNTIF(a:a,"="&"<=$9000")

It looks weird, but seems to work in this case.

And if you get one that you just can't get right, you could use:

=sumproduct(--(a1:a99="<=$9000"))

But you can't use the whole column until xl2007.



PatriciaT wrote:

Hi, i'm puzzled and have never run across this before. I have a column
containing several instances of this value: <=$9000 nothing fancy as you
can see. When i countif and point to this column using a value copied/pasted
so i know it's exact, my result is zero. I even reference the value in the
column in the formula and get zero. Any ideas? Thank you.


--

Dave Peterson
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 STOPS COUNTING bashtherat Excel Worksheet Functions 12 November 18th 08 09:59 AM
COUNTIF not counting properly Christine Excel Discussion (Misc queries) 4 October 23rd 08 08:21 PM
COUNTIF counting incorrectly Dave Excel Worksheet Functions 9 May 6th 08 10:02 PM
COUNTIF not counting will b Excel Discussion (Misc queries) 3 September 14th 07 05:50 PM
countif counting properties Darryl Excel Discussion (Misc queries) 5 January 4th 06 04:10 PM


All times are GMT +1. The time now is 06:32 AM.

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"