yobejammin
New Member
- Joined
- Jun 24, 2014
- Messages
- 1
Hi,
I'm encountering an odd error with the Countif function and I haven't seen any other posts on this exact topic.
I have a very long list (96,906 entries) of txt IDs. A lot of these IDs are "-99" and I'm trying to use various Countifs formula on this list, and other columns in the sheet.
However, I'm getting a very odd error.
If I do =COUNTIF($L$2:$L$96907,"="&"-99") I get the expected result = 49,682
If I do =COUNTIF($L$2:$L$96907,"<>"&"-99") I get an unusual result = 96,902 (almost, but not quite the total number of items in the list).
I would expect to get the result 47,224 (96,906 minus 49,682), or you would at least think that excel would be consistent and in the first Countif case I'd get the output "4".
I can do the calculations another way to get the outputs I need, I just thought this was a very unusual error. I can't see a problem with the syntax I've used, and there are no problems with the list - no extra spaces, no special characters, no error cells.
I've tried this multiple ways - replacing the "-99" with a link to one of the cells with "-99" in it, copying and pasting the "-99" text into the formula etc and each time have reached the same unusual result.
Anyone have any idea what is going on?
Thanks,
Ben
I'm encountering an odd error with the Countif function and I haven't seen any other posts on this exact topic.
I have a very long list (96,906 entries) of txt IDs. A lot of these IDs are "-99" and I'm trying to use various Countifs formula on this list, and other columns in the sheet.
However, I'm getting a very odd error.
If I do =COUNTIF($L$2:$L$96907,"="&"-99") I get the expected result = 49,682
If I do =COUNTIF($L$2:$L$96907,"<>"&"-99") I get an unusual result = 96,902 (almost, but not quite the total number of items in the list).
I would expect to get the result 47,224 (96,906 minus 49,682), or you would at least think that excel would be consistent and in the first Countif case I'd get the output "4".
I can do the calculations another way to get the outputs I need, I just thought this was a very unusual error. I can't see a problem with the syntax I've used, and there are no problems with the list - no extra spaces, no special characters, no error cells.
I've tried this multiple ways - replacing the "-99" with a link to one of the cells with "-99" in it, copying and pasting the "-99" text into the formula etc and each time have reached the same unusual result.
Anyone have any idea what is going on?
Thanks,
Ben