Share via

Countif gives wrong value

Anonymous
2018-03-09T13:49:55+00:00

Hi,

I used this formula =COUNTIF(A1:A9;A1). The result of this formula should be 2. But Excel gives me 4. Could someone help me? All the cell format are text.

Thanks a lot.

A1   40312395014357752

A2   40312395014357752

A3   40312395014357769

A4   40312395014357769

A5   40312395014366051

A6   40312395014366051

A7   40312395014373189

A8   40312395014374117

A9   40312395014374117

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

7 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Anonymous
    2018-03-13T11:54:07+00:00

    Was this answer helpful?

    0 comments No comments
  4. Vijay A. Verma 104.9K Reputation points Volunteer Moderator
    2018-03-10T01:13:58+00:00

    I need to have a look on your workbook to provide you the solution specific to your problem.

    Request you to please prepare and upload a sample / dummy file sans confidential / sensitive data to Onedrive and share the link? It will help me to give prompt and right solution.

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2018-03-09T14:13:04+00:00

    I don't know what you are doing wrong, it worked as expected for me. I got reply 2

    =COUNTIF(C1:C9,C1)

    Was this answer helpful?

    0 comments No comments