Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Excel 2003
I'm trying to do a simple countif. In column A, I have... A 010020 010020 010020 010020 10020 10020 In another cell, I have =COUNTIF(A:A,"010020"), which results in 6, when I expect 4. It's counting the 10020 entries as well. I want an exact match to the literal criteria I enter. How do I do that? Thanks, Chuck |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Just use a wildcard to make Excel treat the criteria as text...
Try this =COUNTIF(A1:A10,"010020*") Does that help? -------------------------- Regards, Ron Microsoft MVP (Excel) "c mateland" wrote in message oups.com... Excel 2003 I'm trying to do a simple countif. In column A, I have... A 010020 010020 010020 010020 10020 10020 In another cell, I have =COUNTIF(A:A,"010020"), which results in 6, when I expect 4. It's counting the 10020 entries as well. I want an exact match to the literal criteria I enter. How do I do that? Thanks, Chuck |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
My previously posted formula would count 010020a as a matched item.
A less risky alternative: =SUMPRODUCT(--(A1:A10="010020")) Note: =SUMPRODUCT(--(A:A="010020")) won't work. You need to use a range that doesn't resolve to an entire column. Regards, Ron Microsoft MVP (Excel) "Ron Coderre" wrote in message ... Just use a wildcard to make Excel treat the criteria as text... Try this =COUNTIF(A1:A10,"010020*") Does that help? -------------------------- Regards, Ron Microsoft MVP (Excel) "c mateland" wrote in message oups.com... Excel 2003 I'm trying to do a simple countif. In column A, I have... A 010020 010020 010020 010020 10020 10020 In another cell, I have =COUNTIF(A:A,"010020"), which results in 6, when I expect 4. It's counting the 10020 entries as well. I want an exact match to the literal criteria I enter. How do I do that? Thanks, Chuck |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
On Sun, 2 Sep 2007 20:40:57 -0400, "Ron Coderre"
wrote: Just use a wildcard to make Excel treat the criteria as text... Try this =COUNTIF(A1:A10,"010020*") Does that help? -------------------------- Regards, Ron Microsoft MVP (Excel) Learn something new every day here. --ron |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
COUNTIF not working w/ cells result of SUM and VLOOKUP | Excel Worksheet Functions | |||
CountIf Array not working | Excel Discussion (Misc queries) | |||
Countif, not working. | Excel Discussion (Misc queries) | |||
Countif with nested function not working? | Excel Worksheet Functions | |||
countif not working | Excel Discussion (Misc queries) |