Troutwater
New Member
- Joined
- May 1, 2008
- Messages
- 17
Hi Group,
I've used countif quite a lot but this one has got me confused.
In a column C >17,000 records has a 16 digit number (also tried text) value.
I want to count the number of occurances of each 16 digit value through the 17,000 rows.
All three countif functions return 3.
[TABLE="width: 904"]
<TBODY>[TR]
[TD]=COUNTIF($C$2:$C$17000,C22)</SPAN>
[/TD]
[TD]1000842281181008</SPAN>
[/TD]
[/TR]
[TR]
[TD]=COUNTIF($C$2:$C$17000,C23)</SPAN>
[/TD]
[TD]1000842281181009</SPAN>
[/TD]
[/TR]
[TR]
[TD]=COUNTIF($C$2:$C$17000,C24)</SPAN>
[/TD]
[TD]1000842281181008</SPAN>
[/TD]
[/TR]
</TBODY>[/TABLE]
But as you can see the last digit is different in the middle row than the upper and lower rows.
I tried pulling this data out into a separate sheet but even with only three 16 digit values the countif returns 3.
I can change the last digit to any other digit of any of the three 16 digit values and it still returns 3. So when I remove the last digit and make it 15 digit values, the other countif functions rule it out and countif equals 2 and the countif of the one 15 digit value equals 1.
Has countif got a max number of characters it can compare?
What's the problem? What can I do?
troutwater
I've used countif quite a lot but this one has got me confused.
In a column C >17,000 records has a 16 digit number (also tried text) value.
I want to count the number of occurances of each 16 digit value through the 17,000 rows.
All three countif functions return 3.
[TABLE="width: 904"]
<TBODY>[TR]
[TD]=COUNTIF($C$2:$C$17000,C22)</SPAN>
[/TD]
[TD]1000842281181008</SPAN>
[/TD]
[/TR]
[TR]
[TD]=COUNTIF($C$2:$C$17000,C23)</SPAN>
[/TD]
[TD]1000842281181009</SPAN>
[/TD]
[/TR]
[TR]
[TD]=COUNTIF($C$2:$C$17000,C24)</SPAN>
[/TD]
[TD]1000842281181008</SPAN>
[/TD]
[/TR]
</TBODY>[/TABLE]
But as you can see the last digit is different in the middle row than the upper and lower rows.
I tried pulling this data out into a separate sheet but even with only three 16 digit values the countif returns 3.
I can change the last digit to any other digit of any of the three 16 digit values and it still returns 3. So when I remove the last digit and make it 15 digit values, the other countif functions rule it out and countif equals 2 and the countif of the one 15 digit value equals 1.
Has countif got a max number of characters it can compare?
What's the problem? What can I do?
troutwater