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

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Have you tried using the CLEAN function on the data to see if it makes any difference?

Dom
 
Upvote 0
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...
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,478
Members
448,967
Latest member
visheshkotha

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
Back
Top