Countif Fails to find Duplicate Values that Exist.

DougStroud

Well-known Member
Joined
Aug 16, 2005
Messages
2,968
Col. A contains a list of values I need to evaluate for duplicates. I have an instance of this value- GW1TIANCRT54 that exists three times, I can search on this value and find it in the respective cells: A5595, A12811, A15600.
My countif function only shows its occurrence of 1 in the results in the corresponding cell where the formula resides-
So-
=COUNTIF(A:A,A5595) displays 1
=COUNTIF(A:A,A12811) displays 1
=COUNTIF(A:A,A15600) displays 1

Which all three cells ref. should show 3. Clicking in the source cell, the values do not show a leading or a trailing space.

Any ideas where to check?
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Domski

Well-known Member
Joined
Jan 18, 2005
Messages
7,292
Have you tried using the CLEAN function on the data to see if it makes any difference?

Dom
 

DougStroud

Well-known Member
Joined
Aug 16, 2005
Messages
2,968
Thanks Dom,
I ran ASAP utilities on the data, remove leading and trailing spaces and this resolved it. I should have tried this first. But as I wrote initially, this data does not indicate that there are any spaces.

Thanks for the tip...
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,958
Messages
5,856,518
Members
431,819
Latest member
hellosunshine

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top