Counting duplicates in Excel

前端 未结 9 805
有刺的猬
有刺的猬 2020-12-08 07:30

I have a list of postcodes that includes duplicates. I would like to find out how many instances of each postcode there are.

For example I would like this:

9条回答
  •  攒了一身酷
    2020-12-08 07:51

    I don't know if it's entirely possible to do your ideal pattern. But I found a way to do your first way: CountIF

    +-------+-------------------+
    |   A   |         B         |
    +-------+-------------------+
    | GL15  | =COUNTIF(A:A, A1) |
    +-------+-------------------+
    | GL15  | =COUNTIF(A:A, A2) |
    +-------+-------------------+
    | GL15  | =COUNTIF(A:A, A3) |
    +-------+-------------------+
    | GL16  | =COUNTIF(A:A, A4) |
    +-------+-------------------+
    | GL17  | =COUNTIF(A:A, A5) |
    +-------+-------------------+
    | GL17  | =COUNTIF(A:A, A6) |
    +-------+-------------------+
    

提交回复
热议问题