A
Anthony
I have a weird issue where the Countif function is incorrectly giving
a result of 1, when the expected result is zero.
Cells A1:A3 are formatted as Text, and they have the following entered
in them:
A1 149902
A2 186427
A3 1541477
Cells B1:B3 are also formatted as text, and the have the following
entered in them:
B1 6-6120
B2 6-2310
B3 6-2410
In cell C1, i entered the following formula and filled down to C3:
=COUNTIF($A$1:$A$3,B1)
For every result in C1:C3, it is returning 1, even though i know that
the numbers in column B dont exist in column A and it should return
zero for each answer!
If you look at just the formula in C1, it thinks that it has found B1
(6-6120) in the value of A3 (1541477)
If i change A3 up or down by 1 (i.e 1541476 or 1541478), then the C1
formula returns 0: change it back to the orginal value, and it retruns
1?. The same happens for the other numbers as well. What is the
relationship between the 2 numbers for Countif to return 1?
Is there any explanation why this is occurring?
a result of 1, when the expected result is zero.
Cells A1:A3 are formatted as Text, and they have the following entered
in them:
A1 149902
A2 186427
A3 1541477
Cells B1:B3 are also formatted as text, and the have the following
entered in them:
B1 6-6120
B2 6-2310
B3 6-2410
In cell C1, i entered the following formula and filled down to C3:
=COUNTIF($A$1:$A$3,B1)
For every result in C1:C3, it is returning 1, even though i know that
the numbers in column B dont exist in column A and it should return
zero for each answer!
If you look at just the formula in C1, it thinks that it has found B1
(6-6120) in the value of A3 (1541477)
If i change A3 up or down by 1 (i.e 1541476 or 1541478), then the C1
formula returns 0: change it back to the orginal value, and it retruns
1?. The same happens for the other numbers as well. What is the
relationship between the 2 numbers for Countif to return 1?
Is there any explanation why this is occurring?