Search code examples
exceluniquedata-manipulation

How to get count of a name next to the column?


Name Count
Mike 2
Andrew 1
Mike 2

How can I get a count column like this in Excel? Note: I don't want something like this:

Name Count
Mike 2
Andrew 1

Solution

  • You can use COUNTIFS(). In Microsoft-365 you can define criteria a range of cells and counting results will spill automatically for those criteria ranges. Try-

    =COUNTIFS(A:A,A2:A4)
    

    enter image description here