Countif Fails to find Duplicate Values that Exist.

DougStroud

Well-known Member
Joined
Aug 16, 2005
Messages
2,961
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?
 

Some videos you may like

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

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,961
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...
 

Watch MrExcel Video

Forum statistics

Threads
1,122,514
Messages
5,596,612
Members
414,080
Latest member
penguin23

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