Problem with countif

TooneTown

New Member
Joined
Dec 30, 2020
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
I have used countif to check for duplicates for years without a problem. For some reason, it is not working now. Please see the image I uploaded. Here is the formula I used - =COUNTIF($K$5:$K$9610,K5). i then filtered on the number 32. If you look at the screen shot that I attached, you can see that all of the values in column K are different, yet countif gives the result of 32. This happened 4 times on this spreadsheet. The format for Column K is Text.

I don't understand why this formula is not working.

Any Help would be greatly appreciated.

Larry
 

Attachments

  • Excel Countif Error.PNG
    Excel Countif Error.PNG
    56.9 KB · Views: 9

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hi & welcome to MrExcel.
The problem is that countif only looks at the first 15 significant characters.
Try sumproduct like
Excel Formula:
=SUMPRODUCT(--(K2:K7=K2))
 
Upvote 0

Forum statistics

Threads
1,214,976
Messages
6,122,539
Members
449,088
Latest member
RandomExceller01

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