Hello. Why does the second formula have to be in quotes?
Countif(sales, 100)
Countif(sales, ">=100")
Hello. Why does the second formula have to be in quotes?
Countif(sales, 100)
Countif(sales, ">=100")
Well, you could also write it like this:
Countif(sales, ">="&100)
and the first one could be:
Countif(sales, "="&100)
or:
Countif(sales, "=100")
COUNTIF (and SUMIF(S) etc.) use the string comparison evaluator, so the second term needs to equate to a string. However, if you are using equals as the comparator, then "=" is optional, as the function is clever enough to deduce what you mean.
Hope this helps.
Pete
the < > and = operators are text, and excel cannot use text in any formula unless you wrap it in "". As Pete said, if you onlu need to use =, then you can actually just leave it out
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks