jimmylavino
New Member
- Joined
- Aug 29, 2011
- Messages
- 1
Hello,
I have a very strange problem with Excel 2003 running under Windows 7 64-bit. I am using a very simple COUNTIF statement to count the occurrences of calculated values. For some reason, COUNTIF does not return the expected results.
For example, I have the following data:
Cell A1: 5
Cell B1: 4.9
Cell C1: =A1-B1
Cell C1 returns "0.1".
In Cell A4 I have a COUNTIF formula of "=COUNTIF(C1:C1, 0.1)". This returns "0", when I expected "1".
If I manually enter "0.1" in Cell C1 instead of relying on the formula, COUNTIF correctly returns "1".
If I change Cell B1 from "4.9" to "4.8" (and restore the formula under Cell C1 to return "0.2") and change my COUNTIF to "=COUNTIF(C1:C1, 0.2)", it correctly returns "1".
What am I doing wrong? I tried this on two other computers running Excel 2003 and in Google Docs and get the same result. I assume it is a syntax problem, but can't figure out what.
Thanks in advance.
I have a very strange problem with Excel 2003 running under Windows 7 64-bit. I am using a very simple COUNTIF statement to count the occurrences of calculated values. For some reason, COUNTIF does not return the expected results.
For example, I have the following data:
Cell A1: 5
Cell B1: 4.9
Cell C1: =A1-B1
Cell C1 returns "0.1".
In Cell A4 I have a COUNTIF formula of "=COUNTIF(C1:C1, 0.1)". This returns "0", when I expected "1".
If I manually enter "0.1" in Cell C1 instead of relying on the formula, COUNTIF correctly returns "1".
If I change Cell B1 from "4.9" to "4.8" (and restore the formula under Cell C1 to return "0.2") and change my COUNTIF to "=COUNTIF(C1:C1, 0.2)", it correctly returns "1".
What am I doing wrong? I tried this on two other computers running Excel 2003 and in Google Docs and get the same result. I assume it is a syntax problem, but can't figure out what.
Thanks in advance.